public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
Remove dangerous delete this article link and replace it with delete these 
comments

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2515 
567b1171-46fb-0310-a4c9-b4bef9110e78
Caged (author)
Mon Nov 27 08:07:01 -0800 2006
commit  8b4d1286807c9298da365bc37fc8ac7f899776fd
tree    85979361cd01f5c18b1ffb8af30012d4e2bff996
parent  bba9da0b95c8ddcc1dcba6d93e202f187d59340a
...
2
3
4
5
 
 
 
 
 
 
6
7
8
...
22
23
24
25
26
27
28
29
30
31
32
...
2
3
4
 
5
6
7
8
9
10
11
12
13
...
27
28
29
 
 
 
 
 
30
31
32
0
@@ -2,7 +2,12 @@
0
 <% content_for :action_nav do %>
0
 <div id="page-nav">
0
   <ul id="act-nav" class="clear">
0
- <% if admin? || @article.user_id == current_user.id -%>
0
+ <% if controller.action_name == 'comments' && @comments.any? -%>
0
+ <li><%= link_to_remote "Delete these #{@filter != 'all' ? @filter : ''} comments", :confirm => "Are you sure you wish to delete all #{@filter != 'all' ? @filter : ''} comments?",
0
+ :url => { :action => 'destroy_comment', :id => @article }, :with => "ArticleForm.getAvailableComments().toQueryString('comment')"
0
+ %></li>
0
+ <% end -%>
0
+ <% if (admin? || @article.user_id == current_user.id) && controller.action_name != 'comments' -%>
0
     <li><%= link_to_remote 'Delete this article', :url => {:action => 'destroy', :id => @article}, :confirm => 'Are you sure you want to delete this article?' %></li>
0
   <% unless @article.comment_age == -1 -%>
0
     <li id="close-article-comments"><%= link_to_remote 'Close comments for this article',
0
@@ -22,11 +27,6 @@
0
         <% if @article.comments.any? && controller.action_name != 'comments' -%>
0
           <li><%= link_to "View comments", :controller => 'articles', :action => 'comments', :id => @article %></li>
0
         <% end %>
0
- <% if controller.action_name == 'comments' && @comments.any? -%>
0
- <li><%= link_to_remote "Delete all #{@filter != 'all' ? @filter : ''} comments", :confirm => "Are you sure you wish to delete all #{@filter != 'all' ? @filter : ''} comments?",
0
- :url => { :action => 'destroy_comment', :id => @article }, :with => "ArticleForm.getAvailableComments().toQueryString('comment')"
0
- %></li>
0
- <% end -%>
0
         </ul>
0
       </div>
0
     </li>

Comments

    No one has commented yet.