annotate .svn/pristine/b8/b8adc96bc75bc39796f4d27ac3d2335820b193bb.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents 038ba2d95de8
children
rev   line source
Chris@1296 1 <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
Chris@1296 2
Chris@1296 3 <div class="contextual">
Chris@1296 4 <%= render :partial => 'navigation' %>
Chris@1296 5 </div>
Chris@1296 6
Chris@1296 7 <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2>
Chris@1296 8
Chris@1296 9 <%= render :partial => 'link_to_functions' %>
Chris@1296 10
Chris@1296 11 <% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
Chris@1296 12
Chris@1296 13 <div class="autoscroll">
Chris@1296 14 <table class="filecontent annotate syntaxhl">
Chris@1296 15 <tbody>
Chris@1296 16 <% line_num = 1; previous_revision = nil %>
Chris@1296 17 <% syntax_highlight_lines(@path, Redmine::CodesetUtil.to_utf8_by_setting(@annotate.content)).each do |line| %>
Chris@1296 18 <% revision = @annotate.revisions[line_num - 1] %>
Chris@1296 19 <tr class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>">
Chris@1296 20 <th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th>
Chris@1296 21 <td class="revision">
Chris@1296 22 <%= (revision.identifier ? link_to_revision(revision, @repository) : format_revision(revision)) if revision && revision != previous_revision %></td>
Chris@1296 23 <td class="author"><%= h(revision.author.to_s.split('<').first) if revision && revision != previous_revision %></td>
Chris@1296 24 <td class="line-code"><pre><%= line.html_safe %></pre></td>
Chris@1296 25 </tr>
Chris@1296 26 <% line_num += 1; previous_revision = revision %>
Chris@1296 27 <% end %>
Chris@1296 28 </tbody>
Chris@1296 29 </table>
Chris@1296 30 </div>
Chris@1296 31
Chris@1296 32 <% html_title(l(:button_annotate)) -%>
Chris@1296 33
Chris@1296 34 <% content_for :header_tags do %>
Chris@1296 35 <%= stylesheet_link_tag 'scm' %>
Chris@1296 36 <% end %>