From c426825881303c0f87a00beec6453f3a49565d0b Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 11 Nov 2014 17:16:04 +0200 Subject: [PATCH] Add zonefile button to domain --- app/views/admin/domains/show.haml | 1 + app/views/admin/domains/zonefile.haml | 14 ++++++++++++-- config/locales/en.yml | 2 ++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/app/views/admin/domains/show.haml b/app/views/admin/domains/show.haml index f4a21124d..a388bdfd3 100644 --- a/app/views/admin/domains/show.haml +++ b/app/views/admin/domains/show.haml @@ -5,6 +5,7 @@ .col-sm-6 %h2.text-right.text-center-xs = link_to(t('shared.edit_statuses'), edit_admin_domain_path(@domain), class: 'btn btn-primary') + = link_to(t('generate_zonefile'), zonefile_admin_domain_path(@domain), class: 'btn btn-primary') %hr .row diff --git a/app/views/admin/domains/zonefile.haml b/app/views/admin/domains/zonefile.haml index 3c5b588ee..daade9b96 100644 --- a/app/views/admin/domains/zonefile.haml +++ b/app/views/admin/domains/zonefile.haml @@ -1,2 +1,12 @@ -= preserve do - %pre= @zonefile +.row + .col-sm-6 + %h2.text-center-xs + = "#{t('zonefile')}" + .col-sm-6 + %h2.text-right.text-center-xs + = link_to(t('shared.back_to_domain'), admin_domain_path(@domain), class: 'btn btn-default') +%hr +.row + .col-md-12 + = preserve do + %pre= @zonefile diff --git a/config/locales/en.yml b/config/locales/en.yml index 2b9da78f3..67c203cec 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -423,3 +423,5 @@ en: transfer_requested: 'Transfer requested.' message_was_not_found: 'Message was not found' host_obj_is_not_allowed: 'hostObj object is not allowed' + generate_zonefile: 'Generate zonefile' + zonefile: 'Zonefile'