comparison .svn/pristine/b8/b8adc96bc75bc39796f4d27ac3d2335820b193bb.svn-base @ 1295:622f24f53b42 redmine-2.3

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