提交 d7a24314 编写于 作者: R Robert Massaioli

cycle: make an odd number be marked as odd.

Just a minor issue that was annoying me so I thought that I would jump in and fix it.
上级 657ba2a9
......@@ -280,7 +280,7 @@ def simple_format(text, html_options={}, options={})
# @items = [1,2,3,4]
# <table>
# <% @items.each do |item| %>
# <tr class="<%= cycle("even", "odd") -%>">
# <tr class="<%= cycle("odd", "even") -%>">
# <td>item</td>
# </tr>
# <% end %>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册