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 @ 912:5e80956cc792
History | View | Annotate | Download (691 Bytes)
| 1 | 0:513646585e45 | Chris | <h2><%=h @attachment.filename %></h2> |
|---|---|---|---|
| 2 | |||
| 3 | <div class="attachments"> |
||
| 4 | <p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %> |
||
| 5 | 909:cbb26bc654de | Chris | <span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p> |
| 6 | 0:513646585e45 | Chris | <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 -%> |