mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-30 04:09:38 +00:00
Add "View Differences" button above wiki and repository revisions table (#12221).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17492 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
da64eb5aca
commit
dc8079fa22
@ -20,6 +20,8 @@ end %>
|
||||
:repository_id => @repository.identifier_param, :path => to_path_param(path)},
|
||||
:method => :get
|
||||
) do %>
|
||||
<% show_diff = revisions.size > 1 %>
|
||||
<%= submit_tag(l(:label_view_diff), :name => nil) if show_diff %>
|
||||
<table class="list changesets">
|
||||
<thead><tr>
|
||||
<th>#</th>
|
||||
@ -30,7 +32,6 @@ end %>
|
||||
<th><%= l(:field_comments) %></th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<% show_diff = revisions.size > 1 %>
|
||||
<% line_num = 1 %>
|
||||
<% revisions.each do |changeset| %>
|
||||
<tr class="changeset">
|
||||
|
||||
@ -5,6 +5,8 @@
|
||||
<%= form_tag({:controller => 'wiki', :action => 'diff',
|
||||
:project_id => @page.project, :id => @page.title},
|
||||
:method => :get) do %>
|
||||
<% show_diff = @versions.size > 1 %>
|
||||
<%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %>
|
||||
<table class="list wiki-page-versions">
|
||||
<thead><tr>
|
||||
<th>#</th>
|
||||
@ -16,7 +18,6 @@
|
||||
<th></th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<% show_diff = @versions.size > 1 %>
|
||||
<% line_num = 1 %>
|
||||
<% @versions.each do |ver| %>
|
||||
<tr class="wiki-page-version">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user