chris@22:
MD5 | chris@22:chris@22: | ||||||
---|---|---|---|---|---|---|---|
Chris@909: <%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %> Chris@909: | Chris@909:|||||||
chris@260: <% have_file = true %>
chris@257: <% if active_change_allowed
chris@257: active_id = "active-" + file.id.to_s -%>
chris@257:
chris@1154: <%= link_to image_tag(file.active? ? 'fav.png' : 'fav_off.png'),
chris@1154: {:controller => 'attachments', :action => 'toggle_active', :project_id => @project.id, :id => file},
chris@1154: :remote => true
chris@257: %>
chris@257:
chris@257: <% else -%>
chris@257: <%= image_tag('fav.png') if file.active? %>
chris@257: <% end -%>
chris@257: |
chris@269: <% if file.active? %>
chris@269: <%= link_to_attachment file, :download => true %> <%= h(file.description) %> |
chris@269: <% else %>
chris@269: <%= link_to_attachment file, :download => true, :title => file.description %> chris@269: <% end %> chris@269: | chris@22:<%= format_time(file.created_on) %> | chris@22:<%= number_to_human_size(file.filesize) %> | chris@22:<%= file.downloads %> | chris@22:<%= file.digest %> | chris@22:Chris@909: <%= link_to(image_tag('delete.png'), attachment_path(file), Chris@1115: :data => {:confirm => l(:text_are_you_sure)}, :method => :delete) if delete_allowed %> chris@22: | Chris@909: