Mercurial > hg > soundsoftware-site
comparison app/views/repositories/annotate.html.erb @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | c6c2cbd0afee |
children | 433d4f72a19b |
comparison
equal
deleted
inserted
replaced
908:c6c2cbd0afee | 909:cbb26bc654de |
---|---|
12 | 12 |
13 <div class="autoscroll"> | 13 <div class="autoscroll"> |
14 <table class="filecontent annotate syntaxhl"> | 14 <table class="filecontent annotate syntaxhl"> |
15 <tbody> | 15 <tbody> |
16 <% line_num = 1 %> | 16 <% line_num = 1 %> |
17 <% syntax_highlight(@path, to_utf8(@annotate.content)).each_line do |line| %> | 17 <% syntax_highlight(@path, Redmine::CodesetUtil.to_utf8_by_setting(@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_revision(revision, @project) : format_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 %> |
28 </tbody> | 28 </tbody> |
29 </table> | 29 </table> |
30 </div> | 30 </div> |
31 | 31 |