Remove unneeded if statement

Domain registrant is always present
This commit is contained in:
Artur Beljajev 2018-01-16 09:36:40 +02:00
parent b71b0238e6
commit 58efa020a5

View file

@ -71,9 +71,7 @@
- @domains.each do |domain|
%tr
%td= link_to(truncate(domain.name), info_registrar_domains_path(domain_name: domain.name))
%td
- if domain.registrant
= link_to(domain.registrant, registrar_contact_path(id: domain.registrant.code))
%td= link_to(domain.registrant, registrar_contact_path(id: domain.registrant.code))
%td= l(domain.valid_to, format: :date_long)
%td
= link_to(t(:edit), edit_registrar_domains_path(domain_name: domain.name),