mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Extract partial
This commit is contained in:
parent
f148fb9aa0
commit
fa30e6f23c
2 changed files with 17 additions and 18 deletions
16
app/views/admin/domains/_domain.html.erb
Normal file
16
app/views/admin/domains/_domain.html.erb
Normal file
|
@ -0,0 +1,16 @@
|
|||
<tr>
|
||||
<td>
|
||||
<%= link_to(domain, admin_domain_path(domain)) %>
|
||||
</td>
|
||||
<td>
|
||||
<% if domain.registrant %>
|
||||
<%= link_to(domain.registrant, [:admin, domain.registrant]) %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<%= l(domain.valid_to, format: :short) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to(domain.registrar, admin_registrar_path(domain.registrar)) if domain.registrar %>
|
||||
</td>
|
||||
</tr>
|
|
@ -29,24 +29,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @domains.each do |x| %>
|
||||
<tr>
|
||||
<td>
|
||||
<%= link_to(x, admin_domain_path(x)) %>
|
||||
</td>
|
||||
<td>
|
||||
<% if x.registrant %>
|
||||
<%= link_to(x.registrant, [:admin, x.registrant]) %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<%= l(x.valid_to, format: :short) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to(x.registrar, admin_registrar_path(x.registrar)) if x.registrar %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<%= render @domains %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue