Adds a News#commentable? method to easily specific additional rules.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8854 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
9678e335a4
commit
8ddcc4caf5
4 files changed
+34
-2
No files matched your search
@@ -53,7 +53,7 @@
|
||||
<% end if @comments.any? %>
|
||||
</div>
|
||||
|
||||
<% if authorize_for 'comments', 'create' %>
|
||||
<% if @news.commentable? %>
|
||||
<p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p>
|
||||
<% form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %>
|
||||
<div class="box">
|
||||
|
||||
Reference in new issue
Block a user