]> git.openstreetmap.org Git - rails.git/commitdiff
Truncate long reason texts to not overwhelm the browser window.
authorMatt Amos <zerebubuth@gmail.com>
Mon, 28 Sep 2009 17:30:10 +0000 (17:30 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Mon, 28 Sep 2009 17:30:10 +0000 (17:30 +0000)
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? %>