Preview | File | <% if project_member_access? %><% end %> |
---|---|---|
<%= attachment_preview attachment %> | <%= link_to attachment.file.display_name, attachment.file.url %> | <% if project_member_access? %><%= link_to "Delete", [organization, project, :attachment, id: attachment], method: :delete, data: { confirm: "Are you sure?" }, class: "tiny button radius" %> | <% end %>