]> git.openstreetmap.org Git - rails.git/blob - app/views/user_blocks/_blocks.html.erb
* The Back link in block/id/edit wasn't translatable
[rails.git] / app / views / user_blocks / _blocks.html.erb
1 <% unless @user_blocks.empty? %>
2 <table id="block_list" cellpadding="3">
3   <tr>
4     <% if show_user_name %>
5     <th><%= t'user_block.partial.display_name' %></th>
6     <% end %>
7     <% if show_creator_name %>
8     <th><%= t'user_block.partial.creator_name' %></th>
9     <% end %>
10     <th><%= t'user_block.partial.reason' %></th>
11     <th><%= t'user_block.partial.status' %></th>
12     <th><%= t'user_block.partial.revoker_name' %></th>
13     <th></th>
14     <th></th>
15     <% if show_revoke_link %>
16     <th></th>
17     <% end %>
18   </tr>
19   <%= 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 %>
20 </table>
21 <% else %>
22 <p><%= t "user_block.#{blocks_by_on}.empty", :name => h(@this_user.display_name) %></p>
23 <% end %>