To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / attachments / diff.html.erb @ 1591:63650ae64bf2

History | View | Annotate | Download (1.05 KB)

1
<h2><%=h @attachment.filename %></h2>
2

    
3
<div class="attachments">
4
<p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
5
   <span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
6
<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
7
   <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
8
</div>
9
<%= form_tag({}, :method => 'get') do %>
10
  <p>
11
    <%= l(:label_view_diff) %>:
12
    <label><%= radio_button_tag 'type', 'inline', @diff_type != 'sbs', :onchange => "this.form.submit()" %> <%= l(:label_diff_inline) %></label>
13
    <label><%= radio_button_tag 'type', 'sbs', @diff_type == 'sbs', :onchange => "this.form.submit()" %> <%= l(:label_diff_side_by_side) %></label>
14
  </p>
15
<% end %>
16
<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type, :diff_style => nil} %>
17

    
18
<% html_title @attachment.filename %>
19

    
20
<% content_for :header_tags do -%>
21
    <%= stylesheet_link_tag "scm" -%>
22
<% end -%>