summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-19 20:19:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-19 20:19:48 +0000
commit49bdf62243dccb6398bdac78b0eff9f1138b28fa (patch)
treebe6b0179e102f221b0777bc15c9601354ed4bd74 /app
parente219af1fbd96a069b46443202fef9fab1a51bd38 (diff)
downloadredmine-49bdf62243dccb6398bdac78b0eff9f1138b28fa.tar.gz
redmine-49bdf62243dccb6398bdac78b0eff9f1138b28fa.zip
Add autoscroll div for each file diff.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1015 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-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" %>