diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-25 10:14:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-25 10:14:24 +0000 |
commit | 58a36e3604372e0ade54b3e12f2bc29f4b729f3b (patch) | |
tree | c5db99edfb355c2777510b59e4872a54eca0f0ce | |
parent | 676fe403abf2f735a352769383d24b588e3b7c29 (diff) | |
download | redmine-58a36e3604372e0ade54b3e12f2bc29f4b729f3b.tar.gz redmine-58a36e3604372e0ade54b3e12f2bc29f4b729f3b.zip |
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
-rw-r--r-- | app/views/issues/show.rhtml | 10 | ||||
-rw-r--r-- | public/stylesheets/application.css | 1 |
2 files changed, 3 insertions, 8 deletions
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 8390f8282..0d4bfa497 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -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>
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index b2fbee0d4..194be1991 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -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 ****************/
|