To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / b8 / b8adc96bc75bc39796f4d27ac3d2335820b193bb.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.48 KB)
| 1 | 1296:038ba2d95de8 | Chris | <%= 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 %> |