<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
<%= render :partial => 'navigation' %>

<%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %>

<%= render :partial => 'link_to_functions' %>

<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
<% line_num = 1 %> <% syntax_highlight_lines(@path, Redmine::CodesetUtil.to_utf8_by_setting(@annotate.content)).each do |line| %> <% revision = @annotate.revisions[line_num - 1] %> <% line_num += 1 %> <% end %>
<%= line_num %> <%= (revision.identifier ? link_to_revision(revision, @repository) : format_revision(revision)) if revision %> <%= h(revision.author.to_s.split('<').first) if revision %>
<%= line.html_safe %>
<% html_title(l(:button_annotate)) -%> <% content_for :header_tags do %> <%= stylesheet_link_tag 'scm' %> <% end %>