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
Search Repo:
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
fix bug in moderate comments page
technoweenie (author)
Wed Feb 13 10:06:05 -0800 2008
commit  b9b07612fbb61a73530bd0920ef62ddbddfb2aa7
tree    9fbebcaa8cafa0f701e0374d354961c337e16877
parent  a1a2cf95d10710f87b6f1b60819dcca164cf96fa
...
38
39
40
41
 
42
43
44
...
46
47
48
49
 
50
51
52
53
...
54
55
56
57
 
58
59
60
 
...
38
39
40
 
41
42
43
44
...
46
47
48
 
49
50
51
52
53
...
54
55
56
 
57
58
59
 
60
0
@@ -38,7 +38,7 @@
0
     <li><a href="#">&nbsp;</a></li>
0
   </ul>
0
   <ul id="attributes">
0
- <% if @article && controller.controller_name == 'articles' && controller.action_name == 'edit' %>
0
+ <% if @article && controller.controller_name == 'articles' && controller.action_name == 'edit' -%>
0
     <li><label for="search">Revision:</label></li>
0
     <li>
0
       <select name="filter" id="revisionnum">
0
@@ -46,7 +46,7 @@
0
         <%= options_from_collection_for_select @article.versions.reverse, :version, :version, params[:version].to_i %>
0
       </select>
0
     </li>
0
- <% end %>
0
+ <% end -%>
0
     <% if controller.controller_name == 'comments' && controller.action_name == 'index' -%>
0
     <li><label for="comments_view">Show comments:</label></li>
0
     <li>
0
0
@@ -54,8 +54,8 @@
0
         <%= options_for_select ['All', 'Unapproved', 'Approved'], params[:filter].to_s.humanize %>
0
       </select>
0
     </li>
0
- <% end %>
0
+ <% end -%>
0
   </ul>
0
 </div>
0
-<% end unless @article.new_record? && @article.comments.empty? -%>
0
+<% end unless @article && @article.new_record? && @article.comments.size == 0 -%>

Comments

    No one has commented yet.