@@ -77,16 +77,10 end %> | |||
|
77 | 77 | <table width="100%"> |
|
78 | 78 | <% for attachment in @issue.attachments %> |
|
79 | 79 | <tr> |
|
80 |
<td> |
|
|
80 | <td><%= link_to attachment.filename, { :action => 'download', :id => @issue, :attachment_id => attachment }, :class => 'icon attachment' %> (<%= human_size(attachment.filesize) %>)</td> | |
|
81 | 81 | <td><%= format_date(attachment.created_on) %></td> |
|
82 | 82 | <td><%= attachment.author.display_name %></td> |
|
83 | <% if authorize_for('issues', 'destroy_attachment') %> | |
|
84 | <td> | |
|
85 | <%= start_form_tag :action => 'destroy_attachment', :id => @issue, :attachment_id => attachment %> | |
|
86 | <%= submit_tag l(:button_delete), :class => "button-small" %> | |
|
87 | <%= end_form_tag %> | |
|
88 | </td> | |
|
89 | <% end %> | |
|
83 | <td><div class="contextual"><%= 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' %></div></td> | |
|
90 | 84 | </tr> |
|
91 | 85 | <% end %> |
|
92 | 86 | </table> |
@@ -143,6 +143,7 background-color: #80b0da; | |||
|
143 | 143 | |
|
144 | 144 | .folder { background-image: url(../images/folder.png); } |
|
145 | 145 | .file { background-image: url(../images/file.png); } |
|
146 | .attachment { background-image: url(../images/attachment.png); } | |
|
146 | 147 | |
|
147 | 148 | /**************** Content styles ****************/ |
|
148 | 149 |
General Comments 0
You need to be logged in to leave comments.
Login now