Project

General

Profile

Feature #12221 » add-view-diff-button-above-revisions.diff

Go MAEDA, 2018-09-17 13:59

View differences:

app/views/repositories/_revisions.html.erb (working copy)
: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>
......
<th><%= l(:field_comments) %></th>
</tr></thead>
<tbody>
<% show_diff = revisions.size > 1 %>
<% line_num = 1 %>
<% revisions.each do |changeset| %>
<tr class="changeset">
app/views/wiki/history.html.erb (working copy)
<%= 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>
......
<th></th>
</tr></thead>
<tbody>
<% show_diff = @versions.size > 1 %>
<% line_num = 1 %>
<% @versions.each do |ver| %>
<tr class="wiki-page-version">
(1-1/2)