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

<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
<% line_num = 1 %> <% syntax_highlight(@path, to_utf8(@annotate.content)).each_line do |line| %> <% revision = @annotate.revisions[line_num-1] %> <% line_num += 1 %> <% end %>
<%= line_num %> <%= (revision.identifier ? link_to(format_revision(revision.identifier), :action => 'revision', :id => @project, :rev => revision.identifier) : format_revision(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 %>