##// END OF EJS Templates
Adds a few Plugin tests....
Adds a few Plugin tests. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2040 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1222:3a9b0988c751
r2038:f9ce4ff559a1
Show More
annotate.rhtml
28 lines | 1.1 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
Added Annotate/Blame view for Subversion, CVS and Mercurial repositories....
r934 <h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2>
<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
<div class="autoscroll">
<table class="filecontent annotate CodeRay">
<tbody>
<% line_num = 1 %>
<% syntax_highlight(@path, to_utf8(@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"><%= line_num %></th>
<td class="revision">
Jean-Philippe Lang
Merged Git support branch (r1200 to r1226)....
r1222 <%= (revision.identifier ? link_to(format_revision(revision.identifier), :action => 'revision', :id => @project, :rev => revision.identifier) : format_revision(revision.revision)) if revision %></td>
Jean-Philippe Lang
Strip out email address from authors in repository screens (#814)....
r1194 <td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td>
Jean-Philippe Lang
Added Annotate/Blame view for Subversion, CVS and Mercurial repositories....
r934 <td class="line-code"><pre><%= line %></pre></td>
</tr>
<% line_num += 1 %>
<% end %>
Jean-Philippe Lang
Fixed: missing body closing tag in repository annotate and entry views....
r979 </tbody>
Jean-Philippe Lang
Added Annotate/Blame view for Subversion, CVS and Mercurial repositories....
r934 </table>
</div>
Jean-Philippe Lang
Slight improvements to the browser views....
r1019 <% html_title(l(:button_annotate)) -%>
Jean-Philippe Lang
Added Annotate/Blame view for Subversion, CVS and Mercurial repositories....
r934 <% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<% end %>