mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-26 09:07:13 +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)},
|
:repository_id => @repository.identifier_param, :path => to_path_param(path)},
|
||||||
:method => :get
|
:method => :get
|
||||||
) do %>
|
) do %>
|
||||||
|
<% show_diff = revisions.size > 1 %>
|
||||||
|
<%= submit_tag(l(:label_view_diff), :name => nil) if show_diff %>
|
||||||
<table class="list changesets">
|
<table class="list changesets">
|
||||||
<thead><tr>
|
<thead><tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
@ -30,7 +32,6 @@ end %>
|
|||||||
<th><%= l(:field_comments) %></th>
|
<th><%= l(:field_comments) %></th>
|
||||||
</tr></thead>
|
</tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% show_diff = revisions.size > 1 %>
|
|
||||||
<% line_num = 1 %>
|
<% line_num = 1 %>
|
||||||
<% revisions.each do |changeset| %>
|
<% revisions.each do |changeset| %>
|
||||||
<tr class="changeset">
|
<tr class="changeset">
|
||||||
|
|||||||
@ -5,6 +5,8 @@
|
|||||||
<%= form_tag({:controller => 'wiki', :action => 'diff',
|
<%= form_tag({:controller => 'wiki', :action => 'diff',
|
||||||
:project_id => @page.project, :id => @page.title},
|
:project_id => @page.project, :id => @page.title},
|
||||||
:method => :get) do %>
|
: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">
|
<table class="list wiki-page-versions">
|
||||||
<thead><tr>
|
<thead><tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
@ -16,7 +18,6 @@
|
|||||||
<th></th>
|
<th></th>
|
||||||
</tr></thead>
|
</tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% show_diff = @versions.size > 1 %>
|
|
||||||
<% line_num = 1 %>
|
<% line_num = 1 %>
|
||||||
<% @versions.each do |ver| %>
|
<% @versions.each do |ver| %>
|
||||||
<tr class="wiki-page-version">
|
<tr class="wiki-page-version">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user