attachments list on issues/show:

* "delete" form replaced by link_to
* added css class for attachment icon 

git-svn-id: http://redmine.rubyforge.org/svn/trunk@112 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2006-12-25 10:14:24 +00:00
parent 676fe403ab
commit 58a36e3604
2 changed files with 3 additions and 8 deletions

View File

@ -77,16 +77,10 @@ end %>
<table width="100%">
<% for attachment in @issue.attachments %>
<tr>
<td><%= image_tag('attachment') %> <%= link_to attachment.filename, :action => 'download', :id => @issue, :attachment_id => attachment %> (<%= human_size(attachment.filesize) %>)</td>
<td><%= link_to attachment.filename, { :action => 'download', :id => @issue, :attachment_id => attachment }, :class => 'icon attachment' %> (<%= human_size(attachment.filesize) %>)</td>
<td><%= format_date(attachment.created_on) %></td>
<td><%= attachment.author.display_name %></td>
<% if authorize_for('issues', 'destroy_attachment') %>
<td>
<%= start_form_tag :action => 'destroy_attachment', :id => @issue, :attachment_id => attachment %>
<%= submit_tag l(:button_delete), :class => "button-small" %>
<%= end_form_tag %>
</td>
<% end %>
<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>
</tr>
<% end %>
</table>

View File

@ -143,6 +143,7 @@ background-color: #80b0da;
.folder { background-image: url(../images/folder.png); }
.file { background-image: url(../images/file.png); }
.attachment { background-image: url(../images/attachment.png); }
/**************** Content styles ****************/