_dir_list.rhtml
22 lines
| 1.0 KiB
| text/html+ruby
|
RhtmlLexer
|
r103 | <table class="list"> | |
<thead><tr> | |||
<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> | |||
</tr></thead> | |||
<tbody> | |||
<% total_size = 0 | |||
@entries.each do |entry| %> | |||
<tr class="<%= cycle 'odd', 'even' %>"> | |||
|
r154 | <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> | |
|
r182 | <td align="right"><%= number_to_human_size(entry.size) unless entry.is_dir? %></td> | |
|
r103 | <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> | |||
</tr> | |||
<% total_size += entry.size | |||
end %> | |||
</tbody> | |||
</table> | |||
|
r182 | <p class="textright"><em><%= l(:label_total) %>: <%= number_to_human_size(total_size) %></em></p> |