comparison app/views/repositories/.svn/text-base/annotate.rhtml.svn-base @ 117:af80e5618e9b redmine-1.1

* Update to Redmine 1.1-stable branch (Redmine SVN rev 4707)
author Chris Cannam
date Thu, 13 Jan 2011 12:53:21 +0000
parents 513646585e45
children
comparison
equal deleted inserted replaced
39:150ceac17a8d 117:af80e5618e9b
17 <% syntax_highlight(@path, to_utf8(@annotate.content)).each_line do |line| %> 17 <% syntax_highlight(@path, to_utf8(@annotate.content)).each_line do |line| %>
18 <% revision = @annotate.revisions[line_num-1] %> 18 <% revision = @annotate.revisions[line_num-1] %>
19 <tr class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>"> 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> 20 <th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th>
21 <td class="revision"> 21 <td class="revision">
22 <%= (revision.identifier ? link_to(format_revision(revision.identifier), :action => 'revision', :id => @project, :rev => revision.identifier) : format_revision(revision.revision)) if revision %></td> 22 <%= (revision.identifier ? link_to_revision(revision, @project) : format_revision(revision)) if revision %></td>
23 <td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td> 23 <td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td>
24 <td class="line-code"><pre><%= line %></pre></td> 24 <td class="line-code"><pre><%= line %></pre></td>
25 </tr> 25 </tr>
26 <% line_num += 1 %> 26 <% line_num += 1 %>
27 <% end %> 27 <% end %>