annotate app/views/attachments/diff.html.erb @ 1169:492ff72268e3 bug_521

Close obsolete branch bug_521
author Chris Cannam
date Thu, 18 Oct 2012 10:42:48 +0100
parents cbb26bc654de
children 433d4f72a19b
rev   line source
Chris@0 1 <h2><%=h @attachment.filename %></h2>
Chris@0 2
Chris@0 3 <div class="attachments">
Chris@0 4 <p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
Chris@909 5 <span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
Chris@0 6 <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
Chris@0 7 <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
Chris@0 8 </div>
Chris@909 9 <p>
Chris@909 10 <% form_tag({}, :method => 'get') do %>
Chris@909 11 <label><%= l(:label_view_diff) %></label>
Chris@909 12 <%= select_tag 'type',
Chris@909 13 options_for_select(
Chris@909 14 [[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type),
Chris@909 15 :onchange => "if (this.value != '') {this.form.submit()}" %>
Chris@909 16 <% end %>
Chris@909 17 </p>
Chris@0 18 <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
Chris@0 19
Chris@0 20 <% html_title @attachment.filename %>
Chris@0 21
Chris@0 22 <% content_for :header_tags do -%>
Chris@0 23 <%= stylesheet_link_tag "scm" -%>
Chris@0 24 <% end -%>