@@ -1,23 +1,26 | |||
|
1 | 1 | <table class="list"> |
|
2 | 2 | <thead><tr> |
|
3 | 3 | <th><%= l(:field_name) %></th> |
|
4 | 4 | <th><%= l(:field_filesize) %></th> |
|
5 | 5 | <th><%= l(:label_revision) %></th> |
|
6 | <th><%= l(:field_author) %></th> | |
|
7 | 6 | <th><%= l(:label_date) %></th> |
|
7 | <th><%= l(:field_author) %></th> | |
|
8 | <th><%= l(:field_comments) %></th> | |
|
8 | 9 | </tr></thead> |
|
9 | 10 | <tbody> |
|
10 | 11 | <% total_size = 0 |
|
11 | 12 | @entries.each do |entry| %> |
|
12 | 13 | <tr class="<%= cycle 'odd', 'even' %>"> |
|
13 | 14 | <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> |
|
14 | 15 | <td align="right"><%= number_to_human_size(entry.size) unless entry.is_dir? %></td> |
|
15 | 16 | <td align="right"><%= link_to entry.lastrev.identifier, :action => 'revision', :id => @project, :rev => entry.lastrev.identifier %></td> |
|
16 | <td align="center"><em><%=h entry.lastrev.author %></em></td> | |
|
17 | 17 | <td align="center"><%= format_time(entry.lastrev.time) %></td> |
|
18 | <td align="center"><em><%=h entry.lastrev.author %></em></td> | |
|
19 | <% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.identifier) %> | |
|
20 | <td><%=h truncate(changeset.comments, 100) unless changeset.nil? %></td> | |
|
18 | 21 | </tr> |
|
19 | 22 | <% total_size += entry.size |
|
20 | 23 | end %> |
|
21 | 24 | </tbody> |
|
22 | 25 | </table> |
|
23 | 26 | <p class="textright"><em><%= l(:label_total) %>: <%= number_to_human_size(total_size) %></em></p> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now