@@ -1,19 +1,25 | |||
|
1 | 1 | <h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2> |
|
2 | 2 | |
|
3 | <table class="list"> | |
|
4 | <thead><tr><th>@<%= @rev %></th><th>@<%= @rev_to %></th><th></th></tr></thead> | |
|
5 | <tbody> | |
|
6 | 3 | <% parsing = false |
|
7 | 4 | line_num_l = 0 |
|
8 | 5 | line_num_r = 0 %> |
|
9 | 6 | <% @diff.each do |line| %> |
|
10 | 7 | <% |
|
11 | if line =~ /^@@ (\+|\-)(\d+)(,\d+)? (\+|\-)(\d+)(,\d+)? @@/ | |
|
8 | if line =~ /^Index: (.*)$/ | |
|
9 | if parsing %> | |
|
10 | </tbody></table> | |
|
11 | <% | |
|
12 | end | |
|
13 | parsing = false %> | |
|
14 | <table class="list"><thead> | |
|
15 | <tr><th colspan="3" class="list-filename"><%= l(:label_attachment) %>: <%= $1 %></th></tr> | |
|
16 | <tr><th>@<%= @rev %></th><th>@<%= @rev_to %></th><th></th></tr> | |
|
17 | </thead><tbody> | |
|
18 | <% | |
|
19 | next | |
|
20 | elsif line =~ /^@@ (\+|\-)(\d+)(,\d+)? (\+|\-)(\d+)(,\d+)? @@/ | |
|
12 | 21 | line_num_l = $2.to_i |
|
13 | 22 | line_num_r = $5.to_i |
|
14 | if parsing %> | |
|
15 | <tr class="spacing"><td colspan="3"> </td></tr> | |
|
16 | <% end | |
|
17 | 23 | parsing = true |
|
18 | 24 | next |
|
19 | 25 | end |
@@ -54,4 +60,4 line_num_r = 0 %> | |||
|
54 | 60 | |
|
55 | 61 | <% content_for :header_tags do %> |
|
56 | 62 | <%= stylesheet_link_tag "scm" %> |
|
57 | <% end %> No newline at end of file | |
|
63 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now