diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 8390f828..0d4bfa49 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -77,16 +77,10 @@ end %>
<%= image_tag('attachment') %> <%= link_to attachment.filename, :action => 'download', :id => @issue, :attachment_id => attachment %> (<%= human_size(attachment.filesize) %>) | +<%= link_to attachment.filename, { :action => 'download', :id => @issue, :attachment_id => attachment }, :class => 'icon attachment' %> (<%= human_size(attachment.filesize) %>) | <%= format_date(attachment.created_on) %> | <%= attachment.author.display_name %> | -<% if authorize_for('issues', 'destroy_attachment') %> -- <%= start_form_tag :action => 'destroy_attachment', :id => @issue, :attachment_id => attachment %> - <%= submit_tag l(:button_delete), :class => "button-small" %> - <%= end_form_tag %> - | -<% end %> +<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy_attachment', :id => @issue, :attachment_id => attachment }, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %> |