diff --git a/app/views/attachments/_links.rhtml b/app/views/attachments/_links.rhtml index afae91a..cce1129 100644 --- a/app/views/attachments/_links.rhtml +++ b/app/views/attachments/_links.rhtml @@ -3,7 +3,7 @@
<%= link_to attachment.filename, {:controller => 'attachments', :action => 'download', :id => attachment }, :class => 'icon icon-attachment' %> (<%= number_to_human_size attachment.filesize %>) <% unless options[:no_author] %> - <%= attachment.author.name %>, <%= format_date(attachment.created_on) %> +
<% end %> <% if options[:delete_url] %> <%= link_to image_tag('delete.png'), options[:delete_url].update({:attachment_id => attachment}), :confirm => l(:text_are_you_sure), :method => :post %> diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index de9e38b..593fdad 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -62,9 +62,13 @@ end %> <% end %> -<%=l(:field_description)%>
+<%=l(:field_description)%>
<%= textilizable @issue.description, :attachments => @issue.attachments %> +<% if @issue.attachments.any? %> +<%= link_to_attachments @issue.attachments, :delete_url => (authorize_for('issues', 'destroy_attachment') ? {:controller => 'issues', :action => 'destroy_attachment', :id => @issue} : nil) %> +<% end %> + <% if authorize_for('issue_relations', 'new') || @issue.relations.any? %>