diff .svn/pristine/ba/badfd965f10fb42e2363bdf98738ced2e08c301d.svn-base @ 926:b73a59a6acbd luisf

Merge from cannam_integration
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 11 May 2012 16:10:11 +0100
parents cbb26bc654de
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.svn/pristine/ba/badfd965f10fb42e2363bdf98738ced2e08c301d.svn-base	Fri May 11 16:10:11 2012 +0100
@@ -0,0 +1,36 @@
+<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
+
+<div class="contextual">
+  <%= render :partial => 'navigation' %>
+</div>
+
+<h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2>
+
+<p><%= render :partial => 'link_to_functions' %></p>
+
+<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
+
+<div class="autoscroll">
+<table class="filecontent annotate syntaxhl">
+  <tbody>
+    <% line_num = 1 %>
+    <% syntax_highlight(@path, Redmine::CodesetUtil.to_utf8_by_setting(@annotate.content)).each_line do |line| %>
+      <% revision = @annotate.revisions[line_num - 1] %>
+      <tr class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>">
+        <th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th>
+        <td class="revision">
+        <%= (revision.identifier ? link_to_revision(revision, @project) : format_revision(revision)) if revision %></td>
+        <td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td>
+        <td class="line-code"><pre><%= line %></pre></td>
+      </tr>
+      <% line_num += 1 %>
+    <% end %>
+  </tbody>
+</table>
+</div>
+
+<% html_title(l(:button_annotate)) -%>
+
+<% content_for :header_tags do %>
+<%= stylesheet_link_tag 'scm' %>
+<% end %>