|
|
@ -6,7 +6,7 @@
|
|
|
|
<% latest_changes = get_trees_last_changes(@project.gpid, @rev, ent_name) %>
|
|
|
|
<% latest_changes = get_trees_last_changes(@project.gpid, @rev, ent_name) %>
|
|
|
|
|
|
|
|
|
|
|
|
<tr id="<%= tr_id %>" class="<%= h params[:parent_id] %> entry <%= entry.kind %>">
|
|
|
|
<tr id="<%= tr_id %>" class="<%= h params[:parent_id] %> entry <%= entry.kind %>">
|
|
|
|
<td style="padding-left: <%=18 * depth%>px;" class="<%=@repository.report_last_commit ? "filename" : "filename_no_report" %>">
|
|
|
|
<td style="padding-left: <%=18 * depth%>px;" class="filename_no_report hidden">
|
|
|
|
<% if entry.is_dir? %>
|
|
|
|
<% if entry.is_dir? %>
|
|
|
|
<%# 展开文件目录 %>
|
|
|
|
<%# 展开文件目录 %>
|
|
|
|
<span class="expander" onclick="scmEntryClick('<%= tr_id %>', '<%= escape_javascript(url_for(
|
|
|
|
<span class="expander" onclick="scmEntryClick('<%= tr_id %>', '<%= escape_javascript(url_for(
|
|
|
@ -18,20 +18,32 @@
|
|
|
|
:depth => (depth + 1),
|
|
|
|
:depth => (depth + 1),
|
|
|
|
:parent_id => tr_id)) %>');"> </span>
|
|
|
|
:parent_id => tr_id)) %>');"> </span>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%= link_to h(ent_name),
|
|
|
|
<a class="<%= (entry.is_dir? ? 'icon icon-folder' : "icon icon-file #{Redmine::MimeType.css_class_of(ent_name)}") %>">
|
|
|
|
|
|
|
|
<%= h(ent_name) %>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<%#= h(ent_name), :class => "(entry.is_dir? ? 'icon icon-folder' : "icon icon-file #{Redmine::MimeType.css_class_of(ent_name)}")%>
|
|
|
|
|
|
|
|
<%#= link_to h(ent_name),
|
|
|
|
{:action => (entry.is_dir? ? 'show' : 'entry'), :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(ent_path), :rev => @rev},
|
|
|
|
{:action => (entry.is_dir? ? 'show' : 'entry'), :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(ent_path), :rev => @rev},
|
|
|
|
:class => (entry.is_dir? ? 'icon icon-folder' : "icon icon-file #{Redmine::MimeType.css_class_of(ent_name)}")%>
|
|
|
|
:class => (entry.is_dir? ? 'icon icon-folder' : "icon icon-file #{Redmine::MimeType.css_class_of(ent_name)}")%>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<!--<td class="size"><%#= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %></td>-->
|
|
|
|
<!--<td class="size"><%#= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %></td>-->
|
|
|
|
<!--<td class="size"><%#= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %></td>-->
|
|
|
|
<!--<td class="size"><%#= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %></td>-->
|
|
|
|
<%# if @repository.report_last_commit %>
|
|
|
|
<%# if @repository.report_last_commit %>
|
|
|
|
|
|
|
|
<td class="tree-comments c_grey hidden">
|
|
|
|
|
|
|
|
<div class="hidden" title="<%= (latest_changes.message) if latest_changes && latest_changes.message %>">
|
|
|
|
|
|
|
|
<%= (latest_changes.message) if latest_changes && latest_changes.message %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="tree-author c_grey">
|
|
|
|
|
|
|
|
<div class="hidden" title="<%= (latest_changes.author) if latest_changes && latest_changes.author %>">
|
|
|
|
|
|
|
|
<%= (latest_changes.author) if latest_changes && latest_changes.author %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td class="tree-age c_grey">
|
|
|
|
<td class="tree-age c_grey">
|
|
|
|
<%#= format_time(latest_changes.first.last_change.split(",")[1]) %>
|
|
|
|
<div class="hidden" title="<%= distance_of_time_in_words(latest_changes.time, Time.now) if latest_changes && latest_changes.time %>"><%= distance_of_time_in_words(latest_changes.time, Time.now) if latest_changes && latest_changes.time %></div>
|
|
|
|
<%= distance_of_time_in_words(latest_changes.first.last_change.split(",")[1], Time.now) if latest_changes && latest_changes.first.last_change %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="tree-author c_grey"><%= (latest_changes.first.last_change.split(",")[2]) if latest_changes && latest_changes.first.last_change %><%#= entry.author %></td>
|
|
|
|
|
|
|
|
<td class="tree-comments c_grey"><%= (latest_changes.first.last_change.split(",")[3]) if latest_changes && latest_changes.first.last_change %><%#=h truncate(entry.changeset.comments, :length => 50) if entry.changeset %></td>
|
|
|
|
|
|
|
|
<%# end %>
|
|
|
|
<%# end %>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|