2007-03-12 20:59:02 +03:00
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
|
|
|
<th><%= l(:field_name) %></th>
|
|
|
|
<th><%= l(:field_filesize) %></th>
|
|
|
|
<th><%= l(:label_revision) %></th>
|
|
|
|
<th><%= l(:label_date) %></th>
|
2007-04-30 22:20:22 +04:00
|
|
|
<th><%= l(:field_author) %></th>
|
|
|
|
<th><%= l(:field_comments) %></th>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
|
|
|
<% total_size = 0
|
|
|
|
@entries.each do |entry| %>
|
|
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
|
|
|
<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"><%= format_time(entry.lastrev.time) %></td>
|
2007-04-30 22:20:22 +04:00
|
|
|
<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>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr>
|
|
|
|
<% total_size += entry.size
|
|
|
|
end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2007-01-26 23:02:49 +03:00
|
|
|
<p class="textright"><em><%= l(:label_total) %>: <%= number_to_human_size(total_size) %></em></p>
|