2009-08-16 02:41:40 +04:00
|
|
|
<%= 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>
|
2007-12-02 23:58:02 +03:00
|
|
|
|
2008-12-22 23:33:01 +03:00
|
|
|
<p><%= render :partial => 'link_to_functions' %></p>
|
|
|
|
|
2007-12-02 23:58:02 +03:00
|
|
|
<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
|
|
|
|
|
|
|
|
<div class="autoscroll">
|
2010-03-14 16:22:50 +03:00
|
|
|
<table class="filecontent annotate syntaxhl">
|
2007-12-02 23:58:02 +03:00
|
|
|
<tbody>
|
|
|
|
<% line_num = 1 %>
|
2011-11-20 16:04:11 +04:00
|
|
|
<% syntax_highlight(@path, Redmine::CodesetUtil.to_utf8_by_setting(@annotate.content)).each_line do |line| %>
|
2011-11-20 08:16:39 +04:00
|
|
|
<% revision = @annotate.revisions[line_num - 1] %>
|
|
|
|
<tr class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>">
|
|
|
|
<th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th>
|
|
|
|
<td class="revision">
|
2012-01-15 22:19:19 +04:00
|
|
|
<%= (revision.identifier ? link_to_revision(revision, @repository) : format_revision(revision)) if revision %></td>
|
2011-11-20 08:16:39 +04:00
|
|
|
<td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td>
|
|
|
|
<td class="line-code"><pre><%= line %></pre></td>
|
|
|
|
</tr>
|
|
|
|
<% line_num += 1 %>
|
2007-12-02 23:58:02 +03:00
|
|
|
<% end %>
|
2007-12-14 20:47:30 +03:00
|
|
|
</tbody>
|
2007-12-02 23:58:02 +03:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title(l(:button_annotate)) -%>
|
|
|
|
|
2007-12-02 23:58:02 +03:00
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag 'scm' %>
|
|
|
|
<% end %>
|