To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / attachments / file.html.erb @ 915:2a68662d5adf
History | View | Annotate | Download (691 Bytes)
| 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 |
|
| 9 |
</div>
|
| 10 |
|
| 11 |
<%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %>
|
| 12 |
|
| 13 |
<% html_title @attachment.filename %>
|
| 14 |
|
| 15 |
<% content_for :header_tags do -%>
|
| 16 |
<%= stylesheet_link_tag "scm" -%>
|
| 17 |
<% end -%>
|