mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
Extract partial
This commit is contained in:
parent
bc56439360
commit
058a84945a
2 changed files with 8 additions and 17 deletions
6
app/views/registrant/domains/_domain.html.erb
Normal file
6
app/views/registrant/domains/_domain.html.erb
Normal file
|
@ -0,0 +1,6 @@
|
|||
<tr>
|
||||
<td><%= link_to domain, registrant_domain_path(domain) %></td>
|
||||
<td><%= link_to domain.registrant.name, registrant_contact_path(domain.registrant) %></td>
|
||||
<td><%= l domain.expire_time %></td>
|
||||
<td><%= link_to domain.registrar, registrant_registrar_path(domain.registrar) %></td>
|
||||
</tr>
|
|
@ -93,24 +93,9 @@
|
|||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @domains.each do |domain| %>
|
||||
<tr>
|
||||
<td>
|
||||
<%= link_to domain, registrant_domain_path(domain) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to domain.registrant.name, registrant_contact_path(domain.registrant) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= l domain.expire_time %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to domain.registrar, registrant_registrar_path(domain.registrar) %>
|
||||
</td>
|
||||
</tr>
|
||||
<div class="row"></div>
|
||||
<% end %>
|
||||
<%= render @domains %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue