summaryrefslogtreecommitdiffstats
path: root/app/views/repositories
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-04-30 18:20:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-04-30 18:20:22 +0000
commit9af49e07f3b7505b982573a75ae10b1330b38a2b (patch)
tree1aa1b568a28ed509ccdd3d828002dbb1886dd978 /app/views/repositories
parent0f0ab745609637e5294dd46829ae2500912fb357 (diff)
downloadredmine-9af49e07f3b7505b982573a75ae10b1330b38a2b.tar.gz
redmine-9af49e07f3b7505b982573a75ae10b1330b38a2b.zip
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
Diffstat (limited to 'app/views/repositories')
-rw-r--r--app/views/repositories/_dir_list.rhtml7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/repositories/_dir_list.rhtml b/app/views/repositories/_dir_list.rhtml
index 9a785f8f0..0e5b712bf 100644
--- a/app/views/repositories/_dir_list.rhtml
+++ b/app/views/repositories/_dir_list.rhtml
@@ -3,8 +3,9 @@
<th><%= l(:field_name) %></th>
<th><%= l(:field_filesize) %></th>
<th><%= l(:label_revision) %></th>
-<th><%= l(:field_author) %></th>
<th><%= l(:label_date) %></th>
+<th><%= l(:field_author) %></th>
+<th><%= l(:field_comments) %></th>
</tr></thead>
<tbody>
<% total_size = 0
@@ -13,8 +14,10 @@
<td><%= 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')) %></td>
<td align="right"><%= number_to_human_size(entry.size) unless entry.is_dir? %></td>
<td align="right"><%= link_to entry.lastrev.identifier, :action => 'revision', :id => @project, :rev => entry.lastrev.identifier %></td>
-<td align="center"><em><%=h entry.lastrev.author %></em></td>
<td align="center"><%= format_time(entry.lastrev.time) %></td>
+<td align="center"><em><%=h entry.lastrev.author %></em></td>
+<% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.identifier) %>
+<td><%=h truncate(changeset.comments, 100) unless changeset.nil? %></td>
</tr>
<% total_size += entry.size
end %>