Reformat code

This commit is contained in:
Artur Beljajev 2018-01-16 09:53:23 +02:00
parent 76208a4eea
commit ef0126367c

View file

@ -16,27 +16,28 @@
<%= render 'search_form' %>
</div>
</div>
<hr/>
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-hover table-bordered table-condensed">
<thead>
<tr>
<th class="col-xs-2">
<%= sort_link(@q, 'name') %>
</th>
<th class="col-xs-2">
<%= sort_link(@q, 'registrant_name', t('.registrant')) %>
</th>
<th class="col-xs-2">
<%= sort_link(@q, 'valid_to', t(:valid_to)) %>
</th>
<th class="col-xs-2">
<%= t('actions') %>
</th>
</tr>
<tr>
<th class="col-xs-2">
<%= sort_link(@q, 'name') %>
</th>
<th class="col-xs-2">
<%= sort_link(@q, 'registrant_name', t('.registrant')) %>
</th>
<th class="col-xs-2">
<%= sort_link(@q, 'valid_to', t(:valid_to)) %>
</th>
<th class="col-xs-2">
<%= t('actions') %>
</th>
</tr>
</thead>
<tbody>
<%= render @domains %>
</tbody>
@ -44,13 +45,15 @@
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<%= paginate @domains %>
</div>
<div class="col-md-6 text-right">
<div class="pagination">
<%= t(:result_count, count: @domains.total_count) %>
<%= t :result_count, count: @domains.total_count %>
</div>
</div>
</div>