You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

diff.html.erb 1.0KB

123456789101112131415161718192021222324
  1. <h2><%=h @attachment.filename %></h2>
  2. <div class="attachments">
  3. <p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
  4. <span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
  5. <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
  6. <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
  7. </div>
  8. <p>
  9. <%= form_tag({}, :method => 'get') do %>
  10. <label><%= l(:label_view_diff) %></label>
  11. <%= select_tag 'type',
  12. options_for_select(
  13. [[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type),
  14. :onchange => "if (this.value != '') {this.form.submit()}" %>
  15. <% end %>
  16. </p>
  17. <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
  18. <% html_title @attachment.filename %>
  19. <% content_for :header_tags do -%>
  20. <%= stylesheet_link_tag "scm" -%>
  21. <% end -%>