@@ -1,15 +1,17 | |||||
1 | <h2><%=h @attachment.filename %></h2> |
|
1 | <h2><%=h @attachment.filename %></h2> | |
2 |
|
2 | |||
3 | <div class="attachments"> |
|
3 | <div class="attachments"> | |
4 | <p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %> |
|
4 | <p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %> | |
5 | <span class="author"><%= @attachment.author %>, <%= format_time(@attachment.created_on) %></span></p> |
|
5 | <span class="author"><%= @attachment.author %>, <%= format_time(@attachment.created_on) %></span></p> | |
6 | <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%> |
|
6 | <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%> | |
7 | <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p> |
|
7 | <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p> | |
8 |
|
8 | |||
9 | </div> |
|
9 | </div> | |
10 | |
|
10 | | |
11 | <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %> |
|
11 | <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %> | |
12 |
|
12 | |||
|
13 | <% html_title @attachment.filename %> | |||
|
14 | ||||
13 | <% content_for :header_tags do -%> |
|
15 | <% content_for :header_tags do -%> | |
14 | <%= stylesheet_link_tag "scm" -%> |
|
16 | <%= stylesheet_link_tag "scm" -%> | |
15 | <% end -%> |
|
17 | <% end -%> |
@@ -1,15 +1,17 | |||||
1 | <h2><%=h @attachment.filename %></h2> |
|
1 | <h2><%=h @attachment.filename %></h2> | |
2 |
|
2 | |||
3 | <div class="attachments"> |
|
3 | <div class="attachments"> | |
4 | <p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %> |
|
4 | <p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %> | |
5 | <span class="author"><%= @attachment.author %>, <%= format_time(@attachment.created_on) %></span></p> |
|
5 | <span class="author"><%= @attachment.author %>, <%= format_time(@attachment.created_on) %></span></p> | |
6 | <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%> |
|
6 | <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%> | |
7 | <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p> |
|
7 | <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p> | |
8 |
|
8 | |||
9 | </div> |
|
9 | </div> | |
10 | |
|
10 | | |
11 | <%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %> |
|
11 | <%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %> | |
12 |
|
12 | |||
|
13 | <% html_title @attachment.filename %> | |||
|
14 | ||||
13 | <% content_for :header_tags do -%> |
|
15 | <% content_for :header_tags do -%> | |
14 | <%= stylesheet_link_tag "scm" -%> |
|
16 | <%= stylesheet_link_tag "scm" -%> | |
15 | <% end -%> |
|
17 | <% end -%> |
General Comments 0
You need to be logged in to leave comments.
Login now