annotate .svn/pristine/c2/c2c82e3c8241b8c704779b9c4b43a710ab26d13a.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 <% @entries.each do |entry| %>
Chris@1295 2 <% tr_id = Digest::MD5.hexdigest(entry.path)
Chris@1295 3 depth = params[:depth].to_i %>
Chris@1295 4 <% ent_path = Redmine::CodesetUtil.replace_invalid_utf8(entry.path) %>
Chris@1295 5 <% ent_name = Redmine::CodesetUtil.replace_invalid_utf8(entry.name) %>
Chris@1295 6 <tr id="<%= tr_id %>" class="<%= h params[:parent_id] %> entry <%= entry.kind %>">
Chris@1295 7 <td style="padding-left: <%=18 * depth%>px;" class="<%=
Chris@1295 8 @repository.report_last_commit ? "filename" : "filename_no_report" %>">
Chris@1295 9 <% if entry.is_dir? %>
Chris@1295 10 <span class="expander" onclick="scmEntryClick('<%= tr_id %>', '<%= escape_javascript(url_for(
Chris@1295 11 :action => 'show',
Chris@1295 12 :id => @project,
Chris@1295 13 :repository_id => @repository.identifier_param,
Chris@1295 14 :path => to_path_param(ent_path),
Chris@1295 15 :rev => @rev,
Chris@1295 16 :depth => (depth + 1),
Chris@1295 17 :parent_id => tr_id)) %>');">&nbsp;</span>
Chris@1295 18 <% end %>
Chris@1295 19 <%= link_to h(ent_name),
Chris@1295 20 {:action => (entry.is_dir? ? 'show' : 'changes'), :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(ent_path), :rev => @rev},
Chris@1295 21 :class => (entry.is_dir? ? 'icon icon-folder' : "icon icon-file #{Redmine::MimeType.css_class_of(ent_name)}")%>
Chris@1295 22 </td>
Chris@1295 23 <td class="size"><%= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %></td>
Chris@1295 24 <% if @repository.report_last_commit %>
Chris@1295 25 <td class="revision"><%= link_to_revision(entry.changeset, @repository) if entry.changeset %></td>
Chris@1295 26 <td class="age"><%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %></td>
Chris@1295 27 <td class="author"><%= entry.author %></td>
Chris@1295 28 <td class="comments"><%=h truncate(entry.changeset.comments, :length => 50) if entry.changeset %></td>
Chris@1295 29 <% end %>
Chris@1295 30 </tr>
Chris@1295 31 <% end %>