Truncate long reason texts to not overwhelm the browser window.

This commit is contained in:
Matt Amos 2009-09-28 17:30:10 +00:00
parent daa2496024
commit ab1444f338

View file

@ -7,7 +7,7 @@
<% if show_moderator_name %> <% 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> <td class="<%= c1 %>"><%= link_to h(block.moderator.display_name), :controller => 'user', :action => 'view', :display_name => block.moderator.display_name %></td>
<% end %> <% end %>
<td class="<%= c1 %>"><%=h block.reason %></td> <td class="<%= c1 %>"><%=h truncate(block.reason) %></td>
<td class="<%= c1 %>"> <td class="<%= c1 %>">
<% if block.active? %> <% if block.active? %>
<% if block.needs_view? %> <% if block.needs_view? %>