##// END OF EJS Templates
attachments list on issues/show:...
Jean-Philippe Lang -
r109:58a36e360437
parent child
Show More
@@ -77,16 +77,10 end %>
77 <table width="100%">
77 <table width="100%">
78 <% for attachment in @issue.attachments %>
78 <% for attachment in @issue.attachments %>
79 <tr>
79 <tr>
80 <td><%= image_tag('attachment') %> <%= link_to attachment.filename, :action => 'download', :id => @issue, :attachment_id => attachment %> (<%= human_size(attachment.filesize) %>)</td>
80 <td><%= link_to attachment.filename, { :action => 'download', :id => @issue, :attachment_id => attachment }, :class => 'icon attachment' %> (<%= human_size(attachment.filesize) %>)</td>
81 <td><%= format_date(attachment.created_on) %></td>
81 <td><%= format_date(attachment.created_on) %></td>
82 <td><%= attachment.author.display_name %></td>
82 <td><%= attachment.author.display_name %></td>
83 <% if authorize_for('issues', 'destroy_attachment') %>
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>
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 %>
90 </tr>
84 </tr>
91 <% end %>
85 <% end %>
92 </table>
86 </table>
@@ -143,6 +143,7 background-color: #80b0da;
143
143
144 .folder { background-image: url(../images/folder.png); }
144 .folder { background-image: url(../images/folder.png); }
145 .file { background-image: url(../images/file.png); }
145 .file { background-image: url(../images/file.png); }
146 .attachment { background-image: url(../images/attachment.png); }
146
147
147 /**************** Content styles ****************/
148 /**************** Content styles ****************/
148
149
General Comments 0
You need to be logged in to leave comments. Login now