diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-06-17 09:03:57 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-06-17 09:03:57 +0000 |
commit | f57cacb28406c1c265df57311baf5acb142517cd (patch) | |
tree | e47214956e2496825fb5ce4704154d2b3f3fb357 /app | |
parent | e53660b7177c94aa97030f0f64fe701acb496dc3 (diff) | |
download | redmine-f57cacb28406c1c265df57311baf5acb142517cd.tar.gz redmine-f57cacb28406c1c265df57311baf5acb142517cd.zip |
Don't repeat revision on each line.
git-svn-id: http://svn.redmine.org/redmine/trunk@17398 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/wiki/annotate.html.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/wiki/annotate.html.erb b/app/views/wiki/annotate.html.erb index 950a5a77c..1b48f5db8 100644 --- a/app/views/wiki/annotate.html.erb +++ b/app/views/wiki/annotate.html.erb @@ -20,17 +20,17 @@ <table class="filecontent annotate"> <tbody> -<% line_num = 1 %> +<% line_num = 1; prev_version = nil %> <% @annotate.lines.each do |line| -%> <tr class="bloc-<%= colors[line[0]] %>"> <th class="line-num"><%= line_num %></th> <td class="revision"><%= link_to line[0], :controller => 'wiki', :action => 'show', :project_id => @project, - :id => @page.title, :version => line[0] %></td> - <td class="author"><%= line[1] %></td> + :id => @page.title, :version => line[0] unless prev_version == line[0] %></td> + <td class="author"><%= line[1] unless prev_version == line[0] %></td> <td class="line-code"><pre><%= line[2] %></pre></td> </tr> -<% line_num += 1 %> +<% line_num += 1; prev_version = line[0] %> <% end -%> </tbody> </table> |