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