mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
white IPs in admin generate ip link only if they exists
This commit is contained in:
parent
7ce525ddef
commit
5d1f691967
1 changed files with 6 additions and 2 deletions
|
@ -96,6 +96,10 @@
|
||||||
%tbody
|
%tbody
|
||||||
- @registrar.white_ips.each do |x|
|
- @registrar.white_ips.each do |x|
|
||||||
%tr
|
%tr
|
||||||
%td= link_to(x.ipv4, [:admin, @registrar, x])
|
%td
|
||||||
%td= link_to(x.ipv6, [:admin, @registrar, x])
|
- if x.ipv4.present?
|
||||||
|
= link_to(x.ipv4, [:admin, @registrar, x])
|
||||||
|
%td
|
||||||
|
- x.ipv6.present?
|
||||||
|
= link_to(x.ipv6, [:admin, @registrar, x])
|
||||||
%td= x.interfaces.join(', ').upcase
|
%td= x.interfaces.join(', ').upcase
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue