GitLab ist jetzt auf dem neuesten Stand! Die jüngsten Probleme wurden behoben. Wir entschuldigen uns für die dadurch verursachten Unannehmlichkeiten.

Commit ebc0be2e authored by maeda's avatar maeda

Add "View Differences" button above wiki and repository revisions table (#12221).

Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@17492 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 671fe31b
......@@ -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">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment