Added fragment caching for svn diffs.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@499 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
7eda64e464
commit
0759212a44
2 files changed
+18
-11
No files matched your search
@@ -8,21 +8,22 @@
|
||||
<% end %>
|
||||
<% end %>
|
||||
<p><label><%= l(:label_view_diff) %></label>
|
||||
<%= select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], params[:type]), :onchange => "if (this.value != '') {this.form.submit()}" %>
|
||||
<%= submit_tag l(:button_apply) %></p>
|
||||
<%= select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], params[:type]), :onchange => "if (this.value != '') {this.form.submit()}" %></p>
|
||||
<% end %>
|
||||
|
||||
<% cache(@cache_key) do %>
|
||||
<% @diff.each do |table_file| %>
|
||||
<% if params[:type] == 'sbs' %>
|
||||
<% if @diff_type == 'sbs' %>
|
||||
<table class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4" class="list-filename">
|
||||
<%= l(:label_attachment) %>: <%= table_file.file_name %>
|
||||
<%= table_file.file_name %>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><%= l(:label_revision) %> <%= @rev %></th>
|
||||
<th colspan="2"><%= l(:label_revision) %> <%= @rev_to %></th>
|
||||
<th colspan="2">@<%= @rev %></th>
|
||||
<th colspan="2">@<%= @rev_to %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -50,7 +51,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3" class="list-filename">
|
||||
<%= l(:label_attachment) %>: <%= table_file.file_name %>
|
||||
<%= table_file.file_name %>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -83,6 +84,7 @@
|
||||
</table>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% content_for :header_tags do %>
|
||||
<%= stylesheet_link_tag "scm" %>
|
||||
|
||||
Reference in new issue
Block a user