From 9af49e07f3b7505b982573a75ae10b1330b38a2b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 30 Apr 2007 18:20:22 +0000 Subject: [PATCH] Added last commit message for each entry in repository browser. git-svn-id: http://redmine.rubyforge.org/svn/trunk@494 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/repositories/_dir_list.rhtml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/repositories/_dir_list.rhtml b/app/views/repositories/_dir_list.rhtml index 9a785f8f..0e5b712b 100644 --- a/app/views/repositories/_dir_list.rhtml +++ b/app/views/repositories/_dir_list.rhtml @@ -3,8 +3,9 @@ <%= l(:field_name) %> <%= l(:field_filesize) %> <%= l(:label_revision) %> -<%= l(:field_author) %> <%= l(:label_date) %> +<%= l(:field_author) %> +<%= l(:field_comments) %> <% total_size = 0 @@ -13,8 +14,10 @@ <%= link_to h(entry.name), { :action => (entry.is_dir? ? 'browse' : 'revisions'), :id => @project, :path => entry.path, :rev => @rev }, :class => ("icon " + (entry.is_dir? ? 'icon-folder' : 'icon-file')) %> <%= number_to_human_size(entry.size) unless entry.is_dir? %> <%= link_to entry.lastrev.identifier, :action => 'revision', :id => @project, :rev => entry.lastrev.identifier %> -<%=h entry.lastrev.author %> <%= format_time(entry.lastrev.time) %> +<%=h entry.lastrev.author %> +<% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.identifier) %> +<%=h truncate(changeset.comments, 100) unless changeset.nil? %> <% total_size += entry.size end %>