mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
eedirekt links to versions
This commit is contained in:
parent
9e9cc07075
commit
582fd59090
3 changed files with 14 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
|||
.row
|
||||
.col-sm-6
|
||||
%h2.text-center-xs= t('shared.contacts')
|
||||
=# render 'admin/contacts/partials/search'
|
||||
.col-sm-6
|
||||
%h2.text-right.text-center-xs
|
||||
= link_to(t('shared.create_new_contact'), new_client_contact_path, class: 'btn btn-primary')
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
.row
|
||||
.col-sm-6
|
||||
%h2.text-center-xs= t('shared.contacts')
|
||||
=# render 'admin/contacts/partials/search'
|
||||
%h2.text-center-xs= t('shared.domains')
|
||||
.col-sm-6
|
||||
%h2.text-right.text-center-xs
|
||||
= link_to(t('shared.create_new_contact'), new_client_domain_path, class: 'btn btn-primary')
|
||||
|
@ -28,7 +27,7 @@
|
|||
- @versions.each do |x|
|
||||
%tr
|
||||
%td= x.event
|
||||
%td= x.whodunnit
|
||||
%td= link_to_whodunnit(x.whodunnit)
|
||||
%td= l(x.created_at, format: :short)
|
||||
%td= link_to(t('shared.domain'), client_domain_path(x.item_id))
|
||||
%td= link_to(t('shared.details'), client_domain_version_path(x, event: x.event))
|
||||
|
|
|
@ -42,6 +42,18 @@
|
|||
%ul.dropdown-menu{role: "menu"}
|
||||
%li
|
||||
= link_to t('shared.contact_list'), client_contacts_path
|
||||
|
||||
%li.dropdown
|
||||
%a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"}
|
||||
= t('shared.history')
|
||||
%span.caret
|
||||
%ul.dropdown-menu{role: "menu"}
|
||||
%li
|
||||
= link_to t('shared.domains_history'), client_domain_versions_path
|
||||
%li
|
||||
= link_to t('shared.contacts_history'), client_contact_versions_path
|
||||
|
||||
|
||||
%ul.nav.navbar-nav.navbar-right
|
||||
- if current_user.admin?
|
||||
%li.dropdown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue