Mercurial > hg > soundsoftware-site
annotate .svn/pristine/ba/ba5d4789df17479bc2d584f1eb52a1d2b9bef079.svn-base @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +0100 |
parents | 038ba2d95de8 |
children |
rev | line source |
---|---|
Chris@1296 | 1 <% if defined?(container) && container && container.saved_attachments %> |
Chris@1296 | 2 <% container.saved_attachments.each_with_index do |attachment, i| %> |
Chris@1296 | 3 <span class="icon icon-attachment" style="display:block; line-height:1.5em;"> |
Chris@1296 | 4 <%= h(attachment.filename) %> (<%= number_to_human_size(attachment.filesize) %>) |
Chris@1296 | 5 <%= hidden_field_tag "attachments[p#{i}][token]", "#{attachment.id}.#{attachment.digest}" %> |
Chris@1296 | 6 </span> |
Chris@1296 | 7 <% end %> |
Chris@1296 | 8 <% end %> |
Chris@1296 | 9 <span id="attachments_fields"> |
Chris@1296 | 10 <span> |
Chris@1296 | 11 <%= file_field_tag 'attachments[1][file]', :id => nil, :class => 'file', |
Chris@1296 | 12 :onchange => "checkFileSize(this, #{Setting.attachment_max_size.to_i.kilobytes}, '#{escape_javascript(l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)))}');" -%> |
Chris@1296 | 13 <%= text_field_tag 'attachments[1][description]', '', :id => nil, :class => 'description', :maxlength => 255, :placeholder => l(:label_optional_description) %> |
Chris@1296 | 14 <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %> |
Chris@1296 | 15 </span> |
Chris@1296 | 16 </span> |
Chris@1296 | 17 <span class="add_attachment"><%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;', :class => 'add_attachment' %> |
Chris@1296 | 18 (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</span> |