Chris@909:

<%=h @attachment.filename %>

Chris@909: Chris@909:
Chris@909:

<%= h("#{@attachment.description} - ") unless @attachment.description.blank? %> Chris@909: <%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %>

Chris@909:

<%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%> Chris@909: (<%= number_to_human_size @attachment.filesize %>)

Chris@909:
Chris@909:

Chris@909: <% form_tag({}, :method => 'get') do %> Chris@909: Chris@909: <%= select_tag 'type', Chris@909: options_for_select( Chris@909: [[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type), Chris@909: :onchange => "if (this.value != '') {this.form.submit()}" %> Chris@909: <% end %> Chris@909:

Chris@909: <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %> Chris@909: Chris@909: <% html_title @attachment.filename %> Chris@909: Chris@909: <% content_for :header_tags do -%> Chris@909: <%= stylesheet_link_tag "scm" -%> Chris@909: <% end -%>