##// END OF EJS Templates
Fixed: can not display attached images inline in message replies....
Jean-Philippe Lang -
r1293:1b8c5d40589d
parent child
Show More
@@ -1,50 +1,50
1 1 <%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}),
2 2 link_to(h(@board.name), {:controller => 'boards', :action => 'show', :project_id => @project, :id => @board}) %>
3 3
4 4 <div class="contextual">
5 5 <%= link_to_if_authorized l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit' %>
6 6 <%= link_to_if_authorized l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del' %>
7 7 </div>
8 8
9 9 <h2><%=h @topic.subject %></h2>
10 10
11 11 <div class="message">
12 12 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
13 13 <div class="wiki">
14 14 <%= textilizable(@topic.content, :attachments => @topic.attachments) %>
15 15 </div>
16 16 <%= link_to_attachments @topic.attachments, :no_author => true %>
17 17 </div>
18 18 <br />
19 19
20 20 <h3 class="icon22 icon22-comment"><%= l(:label_reply_plural) %></h3>
21 21 <% @replies.each do |message| %>
22 22 <a name="<%= "message-#{message.id}" %>"></a>
23 23 <div class="contextual">
24 24 <%= link_to_if_authorized image_tag('edit.png'), {:action => 'edit', :id => message}, :title => l(:button_edit) %>
25 25 <%= link_to_if_authorized image_tag('delete.png'), {:action => 'destroy', :id => message}, :method => :post, :confirm => l(:text_are_you_sure), :title => l(:button_delete) %>
26 26 </div>
27 27 <div class="message reply">
28 28 <h4><%=h message.subject %> - <%= authoring message.created_on, message.author %></h4>
29 <div class="wiki"><%= textilizable message.content %></div>
29 <div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
30 30 <%= link_to_attachments message.attachments, :no_author => true %>
31 31 </div>
32 32 <% end %>
33 33
34 34 <% if !@topic.locked? && authorize_for('messages', 'reply') %>
35 35 <p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p>
36 36 <div id="reply" style="display:none;">
37 37 <% form_for :reply, @reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
38 38 <%= render :partial => 'form', :locals => {:f => f, :replying => true} %>
39 39 <%= submit_tag l(:button_submit) %>
40 40 <%= link_to_remote l(:label_preview),
41 41 { :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
42 42 :method => 'post',
43 43 :update => 'preview',
44 44 :with => "Form.serialize('message-form')",
45 45 :complete => "Element.scrollTo('preview')"
46 46 }, :accesskey => accesskey(:preview) %>
47 47 <% end %>
48 48 <div id="preview" class="wiki"></div>
49 49 </div>
50 50 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now