##// END OF EJS Templates
scm: git: reduce saving heads times in fetching revisions (#8857, #9472)...
scm: git: reduce saving heads times in fetching revisions (#8857, #9472) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9143 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r8525:002081f2245e
r9023:bcba955456c7
Show More
_links.html.erb
23 lines | 1.1 KiB | 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
Change attachment link to download and add a view link for text attachments (#4774)....
r8525 <p><%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%>
<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
Jean-Philippe Lang
Adds an optional description to attachments....
r1166 <span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
Jean-Philippe Lang
Change attachment link to download and add a view link for text attachments (#4774)....
r8525 <% if attachment.is_text? %>
<%= link_to image_tag('magnifier.png'),
:controller => 'attachments', :action => 'show',
:id => attachment, :filename => attachment.filename %>
<% end %>
<% 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>