Feature #12221 » add-view-diff-button-above-revisions.diff
app/views/repositories/_revisions.html.erb (working copy) | ||
---|---|---|
20 | 20 |
:repository_id => @repository.identifier_param, :path => to_path_param(path)}, |
21 | 21 |
:method => :get |
22 | 22 |
) do %> |
23 |
<% show_diff = revisions.size > 1 %> |
|
24 |
<%= submit_tag(l(:label_view_diff), :name => nil) if show_diff %> |
|
23 | 25 |
<table class="list changesets"> |
24 | 26 |
<thead><tr> |
25 | 27 |
<th>#</th> |
... | ... | |
30 | 32 |
<th><%= l(:field_comments) %></th> |
31 | 33 |
</tr></thead> |
32 | 34 |
<tbody> |
33 |
<% show_diff = revisions.size > 1 %> |
|
34 | 35 |
<% line_num = 1 %> |
35 | 36 |
<% revisions.each do |changeset| %> |
36 | 37 |
<tr class="changeset"> |
app/views/wiki/history.html.erb (working copy) | ||
---|---|---|
5 | 5 |
<%= form_tag({:controller => 'wiki', :action => 'diff', |
6 | 6 |
:project_id => @page.project, :id => @page.title}, |
7 | 7 |
:method => :get) do %> |
8 |
<% show_diff = @versions.size > 1 %> |
|
9 |
<%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %> |
|
8 | 10 |
<table class="list wiki-page-versions"> |
9 | 11 |
<thead><tr> |
10 | 12 |
<th>#</th> |
... | ... | |
16 | 18 |
<th></th> |
17 | 19 |
</tr></thead> |
18 | 20 |
<tbody> |
19 |
<% show_diff = @versions.size > 1 %> |
|
20 | 21 |
<% line_num = 1 %> |
21 | 22 |
<% @versions.each do |ver| %> |
22 | 23 |
<tr class="wiki-page-version"> |