Index: app/views/repositories/_revisions.html.erb =================================================================== --- app/views/repositories/_revisions.html.erb (revision 17491) +++ app/views/repositories/_revisions.html.erb (working copy) @@ -20,6 +20,8 @@ :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 %> @@ -30,7 +32,6 @@ -<% show_diff = revisions.size > 1 %> <% line_num = 1 %> <% revisions.each do |changeset| %> Index: app/views/wiki/history.html.erb =================================================================== --- app/views/wiki/history.html.erb (revision 17491) +++ app/views/wiki/history.html.erb (working copy) @@ -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 %>
#<%= l(:field_comments) %>
@@ -16,7 +18,6 @@ -<% show_diff = @versions.size > 1 %> <% line_num = 1 %> <% @versions.each do |ver| %>
#