mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
108869472-filter_and_view_fixes
This commit is contained in:
parent
8d35fe9e77
commit
b013acad7c
4 changed files with 11 additions and 5 deletions
|
@ -69,6 +69,8 @@
|
|||
- if contact.nil? && ver = ContactVersion.where(item_id: domain.registrant_id).last
|
||||
- contact = Contact.new(ver.object.to_h.merge(ver.object_changes.to_h.each_with_object({}){|(k,v), o| o[k]=v.last } ))
|
||||
= contact.try(:name)
|
||||
= " ".html_safe
|
||||
= "(#{t(:deleted)})"
|
||||
%td
|
||||
- if domain.registrar
|
||||
= link_to(domain.registrar, admin_registrar_path(domain.registrar))
|
||||
|
|
|
@ -104,16 +104,16 @@
|
|||
= domain.registrar.name
|
||||
%span{:style => "margin: 20px 20px; clear:both;"}
|
||||
|
||||
- if @version.previous
|
||||
- if prev = @versions_map[(@versions_map.index(@version.id) - 1)]
|
||||
= link_to(t(:previous),
|
||||
admin_domain_version_path(@version.previous.id),
|
||||
admin_domain_version_path(prev),
|
||||
class: 'btn btn-primary')
|
||||
- else
|
||||
%a.btn.btn-primary.disabled{:href => "#"}
|
||||
%span= t(:previous)
|
||||
- if @version.next
|
||||
- if nxt = @versions_map[(@versions_map.index(@version.id) + 1)]
|
||||
= link_to(t(:next),
|
||||
admin_domain_version_path(@version.next.id),
|
||||
admin_domain_version_path(nxt),
|
||||
class: 'btn btn-default')
|
||||
- else
|
||||
%a.btn.btn-default.disabled{:href => "#"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue