diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-26 15:42:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-26 15:42:37 +0000 |
commit | f8ef65e8f64111b5bfa45abd42e0e684afd61f07 (patch) | |
tree | f38d893e289b9eb42f7732eeb33c225b8379ad41 /app/views/messages/show.rhtml | |
parent | 6446c312beab7e23162827a79bd9ab6f9e4d7958 (diff) | |
download | redmine-f8ef65e8f64111b5bfa45abd42e0e684afd61f07.tar.gz redmine-f8ef65e8f64111b5bfa45abd42e0e684afd61f07.zip |
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
Diffstat (limited to 'app/views/messages/show.rhtml')
-rw-r--r-- | app/views/messages/show.rhtml | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/app/views/messages/show.rhtml b/app/views/messages/show.rhtml index 8068da011..c18eb524e 100644 --- a/app/views/messages/show.rhtml +++ b/app/views/messages/show.rhtml @@ -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 %>
\ No newline at end of file +<% end %> |