资源名称 | 下载数 | 引用数 | 版本号 | |
---|---|---|---|---|
<%= @attachment.filename %> 当前版本 |
<%= @attachment.downloads %> | <%= @attachment.try(:quotes).to_i %> | <%= format_time(@attachment.created_on) %> | |
<%= link_to history.filename, download_history_attachment_path(history.id, history.filename), :title => history.filename+"\n"+history.description.to_s %> |
<%= history.downloads %> | <%= history.try(:quotes).to_i %> | <%= format_time(history.created_on) %> | <%#= link_to( '删除资源', attachment_path(history.attachment, :history_id => history, :type => "history"), # :remote => true, # :data => {:confirm => l(:text_are_you_sure)}, # :method => :delete, # :class => "postOptionLink", :class => "btn") if allow_to_delete_attachment(history) %>