Revision 964:3c5858c5794d

View differences:

app/views/attachments/_links.html.erb
2 2
<% for attachment in attachments %>
3 3
<p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
4 4
<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
5
  <span class="size">(<%= number_to_human_size attachment.filesize %><%= ", " + l(:label_x_downloads, :count => attachment.downloads) unless attachment.downloads == 0 %>)</span>
5
  <span class="size_and_count"><%= number_to_human_size attachment.filesize %><%= ", " + l(:label_x_downloads, :count => attachment.downloads) unless attachment.downloads == 0 %></span>
6 6
  <% if options[:deletable] %>
7 7
    <%= link_to image_tag('delete.png'), attachment_path(attachment),
8 8
                                         :confirm => l(:text_are_you_sure),
public/stylesheets/application.css
506 506
div.attachments { margin-top: 12px; }
507 507
div.attachments p { margin:4px 0 2px 0; }
508 508
div.attachments img { vertical-align: middle; }
509
div.attachments span.author { font-size: 0.9em; color: #888; }
509
div.attachments span.author { font-size: 0.9em; color: #888; font-style: italic; padding-left: 4px }
510
div.attachments span.size_and_count { font-size: 0.9em; color: #888; padding-left: 4px; }
510 511

  
511 512
p.other-formats { text-align: right; font-size:0.9em; color: #666; }
512 513
.other-formats span + span:before { content: "| "; }

Also available in: Unified diff