Attachments can now be added to wiki pages (original patch by Pavol Murin). Only authorized users can add/delete attachments.
Attached images can be displayed inline, using textile image tag (for wiki pages, issue descriptions and forum messages). git-svn-id: http://redmine.rubyforge.org/svn/trunk@541 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -10,8 +10,5 @@
|
||||
<!--[eoform:message]-->
|
||||
|
||||
<span class="tabular">
|
||||
<p id="attachments_p"><label><%=l(:label_attachment)%>
|
||||
<%= image_to_function "add.png", "addFileField();return false" %></label>
|
||||
<%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
|
||||
</span>
|
||||
<%= render :partial => 'attachments/form' %>
|
||||
</div>
|
||||
|
||||
@@ -2,15 +2,10 @@
|
||||
|
||||
<p><em><%= @message.author.name %>, <%= format_time(@message.created_on) %></em></p>
|
||||
<div class="wiki">
|
||||
<%= textilizable(@message.content) %>
|
||||
<%= textilizable(@message.content, :attachments => @message.attachments) %>
|
||||
</div>
|
||||
<div class="attachments">
|
||||
<% @message.attachments.each do |attachment| %>
|
||||
<%= link_to attachment.filename, { :action => 'download', :id => @message, :attachment_id => attachment }, :class => 'icon icon-attachment' %>
|
||||
(<%= number_to_human_size(attachment.filesize) %>)<br />
|
||||
<% end %>
|
||||
</div>
|
||||
<br />
|
||||
<%= link_to_attachments @message.attachments, :no_author => true %>
|
||||
|
||||
<h3 class="icon22 icon22-comment"><%= l(:label_reply_plural) %></h3>
|
||||
<% @message.children.each do |message| %>
|
||||
<a name="<%= "message-#{message.id}" %>"></a>
|
||||
@@ -28,4 +23,4 @@
|
||||
<p><%= submit_tag l(:button_submit) %></p>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user