<%= 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(@path, to_utf8_for_repositories(@annotate.content)).each_line do |line| %> <% revision = @annotate.revisions[line_num-1] %> <% line_num += 1 %> <% end %>
<%= line_num %> <%= (revision.identifier ? link_to_revision(revision, @project) : format_revision(revision)) if revision %> <%= h(revision.author.to_s.split('<').first) if revision %>
<%= line %>
<% html_title(l(:button_annotate)) -%> <% content_for :header_tags do %> <%= stylesheet_link_tag 'scm' %> <% end %>