Moved domain history button

This commit is contained in:
Andres Keskküla 2014-11-19 11:31:52 +02:00
parent b149012418
commit 401a193c8f
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,6 @@
= sort_link(@q, 'owner_contact_name', t('shared.owner')) = sort_link(@q, 'owner_contact_name', t('shared.owner'))
%th{class: 'col-xs-2'} %th{class: 'col-xs-2'}
= sort_link(@q, 'valid_to', t('shared.valid_to')) = sort_link(@q, 'valid_to', t('shared.valid_to'))
%th{class: 'col-xs-1'}= t('shared.history')
%tbody %tbody
- @domains.each do |x| - @domains.each do |x|
%tr %tr
@ -37,7 +36,6 @@
%td= link_to(x.registrar, root_path) if x.registrar %td= link_to(x.registrar, root_path) if x.registrar
%td= link_to(x.owner_contact, [:admin, x.owner_contact]) %td= link_to(x.owner_contact, [:admin, x.owner_contact])
%td= l(x.valid_to, format: :short) %td= l(x.valid_to, format: :short)
%td= button_to(t(:'shared.history'), admin_domain_version_path(x.id), method: :get)
.row .row
.col-md-12 .col-md-12
= paginate @domains = paginate @domains

View file

@ -5,6 +5,8 @@
.col-sm-6 .col-sm-6
%h2.text-right.text-center-xs %h2.text-right.text-center-xs
= link_to(t('shared.edit_statuses'), edit_admin_domain_path(@domain), class: 'btn btn-primary') = link_to(t('shared.edit_statuses'), edit_admin_domain_path(@domain), class: 'btn btn-primary')
= link_to(t(:'shared.history'), admin_domain_version_path(@domain.id), method: :get, class: 'btn btn-primary')
/= link_to(t('generate_zonefile'), zonefile_admin_domain_path(@domain), class: 'btn btn-primary') /= link_to(t('generate_zonefile'), zonefile_admin_domain_path(@domain), class: 'btn btn-primary')
%hr %hr