summaryrefslogtreecommitdiffstats
path: root/app/views/repositories
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/repositories')
-rw-r--r--app/views/repositories/diff.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/repositories/diff.rhtml b/app/views/repositories/diff.rhtml
index c1c33a495..de6cdc50c 100644
--- a/app/views/repositories/diff.rhtml
+++ b/app/views/repositories/diff.rhtml
@@ -11,9 +11,9 @@
<%= select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type), :onchange => "if (this.value != '') {this.form.submit()}" %></p>
<% end %>
-<div class="autoscroll">
<% cache(@cache_key) do %>
<% @diff.each do |table_file| %>
+<div class="autoscroll">
<% if @diff_type == 'sbs' %>
<table class="filecontent CodeRay">
<thead>
@@ -84,9 +84,9 @@
</tbody>
</table>
<% end %>
+</div>
<% end %>
<% end %>
-</div>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>