##// END OF EJS Templates
[#20288] Update the CodeRay Ruby syntax highlight example....
[#20288] Update the CodeRay Ruby syntax highlight example. This commit changes the following: * Remove line numbering from syntax highlight example. * Add span with 'CodeRay' class around the syntax highlight example. * Fix span classes in the syntax highlight example: ** Ruby scanner changed from ':reserved' to ':keyword' with CodeRay 1.0.0. * Remove obsolete line numbering styles. * Fix internal stylesheet to match CodeRay 1.1.0 (preserving r10132's changes). * Sort internal styles and remove superfluous newlines between styles. Contributed by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@14492 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r13661:b778c51e9049
r14110:763d5dddde2c
Show More
edit.html.erb
30 lines | 1.1 KiB | text/plain | TextLexer
<h2><%= l(:label_edit_attachments) %></h2>
<%= error_messages_for *@attachments %>
<%= form_tag(container_attachments_path(@container), :method => 'patch') do %>
<%= back_url_hidden_field_tag %>
<div class="box attachments">
<table>
<% @attachments.each do |attachment| %>
<tr>
<td colspan="2">
<span class="icon icon-attachment"><%= attachment.filename_was %></span>
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
<span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span>
</td>
</tr>
<tr id="attachment-<%= attachment.id %>">
<td><%= text_field_tag "attachments[#{attachment.id}][filename]", attachment.filename, :size => 40 %></td>
<td>
<%= text_field_tag "attachments[#{attachment.id}][description]", attachment.description, :size => 80, :placeholder => l(:label_optional_description) %>
</td>
</tr>
<% end %>
</table>
</div>
<p>
<%= submit_tag l(:button_save) %>
<%= link_to l(:button_cancel), back_url if back_url.present? %>
</p>
<% end %>