<%= raw(link_logo(attachment.space, :size =>'w48', :url => space_path(attachment.space), :title=>attachment.space.name)) %>
- <%= link_to(image_tag("./icons/cancel.png", :alt => t('delete.one'),:class=>"icon"), space_attachment_path(attachment.space, attachment),
{:method => :delete, :title => t('delete.one'), :confirm => t('delete.confirm', :element => attachment.filename)}) if attachment.authorize?(:delete, :to => current_user) %>
<%=image_tag("icons/attach.png",:class=>"icon", :title => t('attachment.home.one', :space=>attachment.space.name))%> <%= link_to(sanitize(attachment.filename), space_attachment_path(attachment.space, attachment, :format => attachment.format!),:class=>"unified_news") %> <%= t('created_time_ago', :time => sanitize(time_ago_in_words(attachment.created_at))) %>
-
<% if show_author -%>
<%=t('author')%>:<%=link_to(attachment.author.name,user_path(attachment.author),:class=>"unified_user")%>
<% end -%>