]> git.openstreetmap.org Git - rails.git/blob - app/views/user_blocks/_blocks.html.erb
Even out the widths of the white bars around the message box
[rails.git] / app / views / user_blocks / _blocks.html.erb
1 <table id="block_list" cellpadding="3">
2   <tr>
3     <% if show_user_name %>
4     <th><%= t'user_block.partial.display_name' %></th>
5     <% end %>
6     <% if show_creator_name %>
7     <th><%= t'user_block.partial.creator_name' %></th>
8     <% end %>
9     <th><%= t'user_block.partial.reason' %></th>
10     <th><%= t'user_block.partial.status' %></th>
11     <th><%= t'user_block.partial.revoker_name' %></th>
12     <th></th>
13     <th></th>
14     <% if show_revoke_link %>
15     <th></th>
16     <% end %>
17   </tr>
18   <%= render :partial => 'block', :locals => {:show_revoke_link => show_revoke_link, :show_user_name => show_user_name, :show_creator_name => show_creator_name }, :collection => @user_blocks %>
19 </table>
20
21 <ul class='secondary-actions'>
22   <% if @user_blocks_pages.current_page.number > 1 -%>
23     <li><%= link_to t('user_block.partial.previous'), params.merge({ :page => @user_blocks_pages.current_page.number - 1 }) %></li>
24   <% else -%>
25     <li><%= t('user_block.partial.previous') %></li>
26   <% end -%>
27
28   <li><%= t('user_block.partial.showing_page', :page => @user_blocks_pages.current_page.number) %></li>
29
30   <% if @user_blocks_pages.current_page.number < @user_blocks_pages.page_count -%>
31     <li><%= link_to t('user_block.partial.next'), params.merge({ :page => @user_blocks_pages.current_page.number + 1 }) %></li>
32   <% else -%>
33     <li><%= t('user_block.partial.next') %></li>
34   <% end -%>
35 </ul>