kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
15 years ago
|
<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
|
||
|
|
||
|
<div class="contextual">
|
||
|
<%= render :partial => 'navigation' %>
|
||
|
</div>
|
||
|
|
||
|
<h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2>
|
||
17 years ago
|
|
||
16 years ago
|
<p><%= render :partial => 'link_to_functions' %></p>
|
||
|
|
||
17 years ago
|
<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
|
||
|
|
||
|
<div class="autoscroll">
|
||
15 years ago
|
<table class="filecontent annotate syntaxhl">
|
||
17 years ago
|
<tbody>
|
||
|
<% line_num = 1 %>
|
||
14 years ago
|
<% syntax_highlight(@path, to_utf8_for_repositories(@annotate.content)).each_line do |line| %>
|
||
17 years ago
|
<% revision = @annotate.revisions[line_num-1] %>
|
||
|
<tr class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>">
|
||
16 years ago
|
<th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th>
|
||
17 years ago
|
<td class="revision">
|
||
14 years ago
|
<%= (revision.identifier ? link_to_revision(revision, @project) : format_revision(revision)) if revision %></td>
|
||
17 years ago
|
<td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td>
|
||
17 years ago
|
<td class="line-code"><pre><%= line %></pre></td>
|
||
|
</tr>
|
||
|
<% line_num += 1 %>
|
||
|
<% end %>
|
||
17 years ago
|
</tbody>
|
||
17 years ago
|
</table>
|
||
|
</div>
|
||
|
|
||
17 years ago
|
<% html_title(l(:button_annotate)) -%>
|
||
|
|
||
17 years ago
|
<% content_for :header_tags do %>
|
||
|
<%= stylesheet_link_tag 'scm' %>
|
||
|
<% end %>
|