@@ -30,16 +30,17 | |||||
30 | <div class="contextual"> |
|
30 | <div class="contextual"> | |
31 | <%= link_to_if_authorized l(:button_delete), {:controller => 'news', :action => 'destroy_comment', :id => @news, :comment_id => comment}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> |
|
31 | <%= link_to_if_authorized l(:button_delete), {:controller => 'news', :action => 'destroy_comment', :id => @news, :comment_id => comment}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> | |
32 | </div> |
|
32 | </div> | |
33 |
<%= |
|
33 | <%= textilizable(comment.comments) %> | |
34 | <% end if @news.comments_count > 0 %> |
|
34 | <% end if @news.comments_count > 0 %> | |
35 | </div> |
|
35 | </div> | |
36 |
|
36 | |||
37 | <% if authorize_for 'news', 'add_comment' %> |
|
37 | <% if authorize_for 'news', 'add_comment' %> | |
38 | <p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p> |
|
38 | <p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p> | |
39 | <% form_tag({:action => 'add_comment', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %> |
|
39 | <% form_tag({:action => 'add_comment', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %> | |
40 |
<%= text_area 'comment', 'comments', :cols => |
|
40 | <%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %> | |
|
41 | <%= wikitoolbar_for 'comment_comments' %> | |||
41 | <p><%= submit_tag l(:button_add) %></p> |
|
42 | <p><%= submit_tag l(:button_add) %></p> | |
42 | <% end %> |
|
43 | <% end %> | |
43 | <% end %> |
|
44 | <% end %> | |
44 |
|
45 | |||
45 |
<% set_html_title |
|
46 | <% set_html_title(h(@news.title)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now