public this repo is viewable by everyone
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/halorgium/mephisto.git
fix bug in moderate comments page
technoweenie (author)
3 months ago
commit  b9b07612fbb61a73530bd0920ef62ddbddfb2aa7
tree    9fbebcaa8cafa0f701e0374d354961c337e16877
parent  a1a2cf95d10710f87b6f1b60819dcca164cf96fa
...
38
39
40
41
 
42
43
44
...
46
47
48
49
 
50
51
52
...
54
55
56
57
 
58
59
60
61
 
62
...
38
39
40
 
41
42
43
44
...
46
47
48
 
49
50
51
52
...
54
55
56
 
57
58
59
 
60
61
62
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
@@ -54,7 +54,7 @@
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
\ No newline at end of file
0
+<% end unless @article && @article.new_record? && @article.comments.size == 0 -%>
0
\ No newline at end of file

Comments

    No one has commented yet.