From 20feb44564260e775cded8b242d7c7d163af94a5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 9 Apr 2007 18:18:23 +0000 Subject: [PATCH] Changesets comments truncated at 500 characters on activity view. git-svn-id: http://redmine.rubyforge.org/svn/trunk@438 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/activity.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/activity.rhtml b/app/views/projects/activity.rhtml index d5862b292..a0d419884 100644 --- a/app/views/projects/activity.rhtml +++ b/app/views/projects/activity.rhtml @@ -42,7 +42,7 @@ <% unless e.comment.blank? %><%=h e.comment %><% end %> <% elsif e.is_a? Changeset %> <%= e.created_on.strftime("%H:%M") %> <%=l(:label_revision)%> <%= link_to h(e.revision), :controller => 'repositories', :action => 'revision', :id => @project, :rev => e.revision %>
- <%=h e.committer.blank? ? "anonymous" : e.committer %><%= h(": #{e.comment}") unless e.comment.blank? %> + <%=h e.committer.blank? ? "anonymous" : e.committer %><%= h(": #{truncate(e.comment, 500)}") unless e.comment.blank? %> <% end %>