]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_blocks/_block.html.erb
Truncate long reason texts to not overwhelm the browser window.
[rails.git] / app / views / user_blocks / _block.html.erb
index c443dce2ce2e6786cde9db56b73c739b1fb1a5ae..789ebddfe6bc0d66646e7d04037b120466e49097 100644 (file)
@@ -7,7 +7,7 @@
   <% if show_moderator_name %>
   <td class="<%= c1 %>"><%= link_to h(block.moderator.display_name), :controller => 'user', :action => 'view', :display_name => block.moderator.display_name %></td>
   <% end %>
-  <td class="<%= c1 %>"><%=h block.reason %></td>
+  <td class="<%= c1 %>"><%=h truncate(block.reason) %></td>
   <td class="<%= c1 %>">
     <% if block.active? %>
       <% if block.needs_view? %>