##// END OF EJS Templates
remove duplicated :remote key from app/views/messages/show.html.erb...
Toshi MARUYAMA -
r13454:c23c949d956f
parent child
Show More
@@ -1,86 +1,85
1 1 <%= board_breadcrumb(@message) %>
2 2
3 3 <div class="contextual">
4 4 <%= watcher_link(@topic, User.current) %>
5 5 <%= link_to(
6 6 l(:button_quote),
7 7 {:action => 'quote', :id => @topic},
8 :remote => true,
9 8 :method => 'get',
10 9 :class => 'icon icon-comment',
11 10 :remote => true) if !@topic.locked? && authorize_for('messages', 'reply') %>
12 11 <%= link_to(
13 12 l(:button_edit),
14 13 {:action => 'edit', :id => @topic},
15 14 :class => 'icon icon-edit'
16 15 ) if @message.editable_by?(User.current) %>
17 16 <%= link_to(
18 17 l(:button_delete),
19 18 {:action => 'destroy', :id => @topic},
20 19 :method => :post,
21 20 :data => {:confirm => l(:text_are_you_sure)},
22 21 :class => 'icon icon-del'
23 22 ) if @message.destroyable_by?(User.current) %>
24 23 </div>
25 24
26 25 <h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
27 26
28 27 <div class="message">
29 28 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
30 29 <div class="wiki">
31 30 <%= textilizable(@topic, :content) %>
32 31 </div>
33 32 <%= link_to_attachments @topic, :author => false %>
34 33 </div>
35 34 <br />
36 35
37 36 <% unless @replies.empty? %>
38 37 <h3 class="comments"><%= l(:label_reply_plural) %> (<%= @reply_count %>)</h3>
39 38 <% @replies.each do |message| %>
40 39 <div class="message reply" id="<%= "message-#{message.id}" %>">
41 40 <div class="contextual">
42 41 <%= link_to(
43 42 image_tag('comment.png'),
44 43 {:action => 'quote', :id => message},
45 44 :remote => true,
46 45 :method => 'get',
47 46 :title => l(:button_quote)) if !@topic.locked? && authorize_for('messages', 'reply') %>
48 47 <%= link_to(
49 48 image_tag('edit.png'),
50 49 {:action => 'edit', :id => message},
51 50 :title => l(:button_edit)
52 51 ) if message.editable_by?(User.current) %>
53 52 <%= link_to(
54 53 image_tag('delete.png'),
55 54 {:action => 'destroy', :id => message},
56 55 :method => :post,
57 56 :data => {:confirm => l(:text_are_you_sure)},
58 57 :title => l(:button_delete)
59 58 ) if message.destroyable_by?(User.current) %>
60 59 </div>
61 60 <h4>
62 61 <%= avatar(message.author, :size => "24") %>
63 62 <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
64 63 -
65 64 <%= authoring message.created_on, message.author %>
66 65 </h4>
67 66 <div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
68 67 <%= link_to_attachments message, :author => false %>
69 68 </div>
70 69 <% end %>
71 70 <p class="pagination"><%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %></p>
72 71 <% end %>
73 72
74 73 <% if !@topic.locked? && authorize_for('messages', 'reply') %>
75 74 <p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p>
76 75 <div id="reply" style="display:none;">
77 76 <%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
78 77 <%= render :partial => 'form', :locals => {:f => f, :replying => true} %>
79 78 <%= submit_tag l(:button_submit) %>
80 79 <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %>
81 80 <% end %>
82 81 <div id="preview" class="wiki"></div>
83 82 </div>
84 83 <% end %>
85 84
86 85 <% html_title @topic.subject %>
General Comments 0
You need to be logged in to leave comments. Login now