##// END OF EJS Templates
Slight documentation update....
Slight documentation update. git-svn-id: http://redmine.rubyforge.org/svn/trunk@589 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r556:438161ad1fd3
r586:1cb5fc747f10
Show More
_dir_list.rhtml
25 lines | 1.3 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <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>
Jean-Philippe Lang
Added last commit message for each entry in repository browser....
r491 <th><%= l(:field_author) %></th>
<th><%= l(:field_comments) %></th>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </tr></thead>
<tbody>
<% total_size = 0
@entries.each do |entry| %>
<tr class="<%= cycle 'odd', 'even' %>">
Jean-Philippe Lang
Added basic support for CVS and Mercurial SCMs....
r556 <td><%= link_to h(entry.name), { :action => (entry.is_dir? ? 'browse' : 'changes'), :id => @project, :path => entry.path, :rev => @rev }, :class => ("icon " + (entry.is_dir? ? 'icon-folder' : 'icon-file')) %></td>
<td align="right"><%= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %></td>
<td align="right"><%= link_to(entry.lastrev.name, :action => 'revision', :id => @project, :rev => entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %></td>
<td align="center"><%= format_time(entry.lastrev.time) if entry.lastrev %></td>
<td align="center"><em><%=h(entry.lastrev.author) if entry.lastrev %></em></td>
<% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.identifier) if entry.lastrev %>
Jean-Philippe Lang
Added last commit message for each entry in repository browser....
r491 <td><%=h truncate(changeset.comments, 100) unless changeset.nil? %></td>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </tr>
Jean-Philippe Lang
Added basic support for CVS and Mercurial SCMs....
r556 <% total_size += entry.size if entry.size
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 end %>
</tbody>
</table>
Jean-Philippe Lang
replaced deprecated human_size by number_to_human_size...
r182 <p class="textright"><em><%= l(:label_total) %>: <%= number_to_human_size(total_size) %></em></p>