public
Fork of halorgium/mephisto
Description: A refactored Mephisto that has multiple spam detection engines.
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/francois/mephisto.git
Use #cycle in preference to calculating the even rows to shade.
francois (author)
Tue Mar 04 11:09:02 -0800 2008
commit  3bbe3ca69a5aa2e4346e62a988edab0b3d9451b8
tree    75b03c20ef42d5fcd6a7ade7d2618846bd54acd2
parent  96cdc957653159c24ebf59a5096bcde6554ba58f
...
15
16
17
18
19
 
 
20
21
22
...
15
16
17
 
 
18
19
20
21
22
0
@@ -15,8 +15,8 @@ Comments for all articles
0
 
0
 <ul class="pagelist commentlist" id="comment-list">
0
   <% if @comments.any? %>
0
- <% @comments.reverse.each_with_index do |comment, i| -%>
0
- <li class="event-comment<%= " shade" if (i % 2 > 0) %>" id="comment-<%= comment.id %>">
0
+ <% @comments.reverse.each do |comment| -%>
0
+ <li class="event-comment<%= cycle("", " shade") %>" id="comment-<%= comment.id %>">
0
     <a name="comment-<%= comment.id %>"></a>
0
     <% unless comment.body.blank? -%>
0
     <blockquote><p>"<%= strip_tags(comment.body) %>"</p></blockquote>

Comments

    No one has commented yet.