##// END OF EJS Templates
Code cleanup....
Code cleanup. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8198 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r7828:885605b439de
r8078:cd0113a2875f
Show More
_links.html.erb
18 lines | 843 B | text/plain | TextLexer
Jean-Philippe Lang
Attachments can now be added to wiki pages (original patch by Pavol Murin). Only authorized users can add/delete attachments....
r538 <div class="attachments">
<% for attachment in attachments %>
Jean-Philippe Lang
Appends the filename to the attachment url so that clients that ignore content-disposition http header get the real filename (#1649)....
r1669 <p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
Jean-Philippe Lang
Adds an optional description to attachments....
r1166 <%= h(" - #{attachment.description}") unless attachment.description.blank? %>
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
Jean-Philippe Lang
AttachmentsController now handles attachments deletion....
r2114 <% if options[:deletable] %>
Jean-Philippe Lang
Resourcified attachments....
r7828 <%= link_to image_tag('delete.png'), attachment_path(attachment),
Jean-Philippe Lang
Adds an optional description to attachments....
r1166 :confirm => l(:text_are_you_sure),
Jean-Philippe Lang
Resourcified attachments....
r7828 :method => :delete,
Jean-Philippe Lang
Adds an optional description to attachments....
r1166 :class => 'delete',
:title => l(:button_delete) %>
<% end %>
Jean-Philippe Lang
AttachmentsController now handles attachments deletion....
r2114 <% if options[:author] %>
Toshi MARUYAMA
HTML escape at app/views/attachments/_links.rhtml....
r6238 <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span>
Jean-Philippe Lang
Attachments can now be added to wiki pages (original patch by Pavol Murin). Only authorized users can add/delete attachments....
r538 <% end %>
</p>
<% end %>
</div>