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 !
add comment moderation links to the overview

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2892 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Fri Jun 08 07:22:13 -0700 2007
commit  a13b079d42233fb6c917c640fe9bd04ab82f5714
tree    0a2953e731ee973e9ba856cdc82066d14262fd77
parent  f112842469e8d710579a979ca5b89130594194dc
...
1
2
 
3
4
5
...
9
10
11
12
 
 
 
 
 
 
 
 
 
 
13
14
...
1
2
3
4
5
6
...
10
11
12
 
13
14
15
16
17
18
19
20
21
22
23
24
0
@@ -1,5 +1,6 @@
0
 <% with_options :controller => 'articles', :id => event.article_id do |article| -%>
0
 <li id="event-<%= event.id %>" class="event-comment<%= " shade" if shaded %>">
0
+ <div id="comment-<%= event.comment_id %>">
0
   <%= link_to event.article.title, :controller => 'articles', :action => 'comments', :id => event.article_id, :anchor => "comment-#{event.comment_id}" %> received a comment.
0
   
0
   <span class="event-time"><%= event_time_for event, later %></span>
0
@@ -9,6 +10,15 @@
0
   <span class="meta">
0
     &mdash; <%=h event.author %>
0
   </span>
0
-
0
+
0
+ <% if event.comment %>
0
+ <% if event.comment.approved? -%>
0
+ <%= link_to_remote 'Unapprove', :url => { :controller => 'admin/articles', :action => 'unapprove', :id => event.article_id, :comment => event.comment_id } %> |
0
+ <% else -%>
0
+ <%= link_to_remote 'Approve', :url => { :controller => 'admin/articles', :action => 'approve', :id => @article, :comment => event.comment_id } %> |
0
+ <% end -%>
0
+ <%= link_to_remote 'Delete', :url => { :controller => 'admin/articles', :action => 'destroy_comment', :id => @article, :comment => event.comment_id } %>
0
+ <% end %>
0
+ </div>
0
 </li>
0
 <% end -%>

Comments

    No one has commented yet.