summaryrefslogtreecommitdiffstats
path: root/app/views/enumerations
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-25 11:44:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-25 11:44:12 +0000
commit9814dcf231b50bd1d8e712db8534051ff8a8c8c6 (patch)
treedb40fb794b2ed5a87477c6d026e98123d3425b39 /app/views/enumerations
parent1eee6b3a30dfa2e0b7c9aaa5db3da3b3c9965b19 (diff)
downloadredmine-9814dcf231b50bd1d8e712db8534051ff8a8c8c6.tar.gz
redmine-9814dcf231b50bd1d8e712db8534051ff8a8c8c6.zip
Use css pseudo-classes instead of cycle("odd", "even") (#15361).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16249 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/enumerations')
-rw-r--r--app/views/enumerations/index.html.erb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/enumerations/index.html.erb b/app/views/enumerations/index.html.erb
index 042934b54..09d13a091 100644
--- a/app/views/enumerations/index.html.erb
+++ b/app/views/enumerations/index.html.erb
@@ -16,7 +16,7 @@
<th></th>
</tr></thead>
<% enumerations.each do |enumeration| %>
-<tr class="<%= cycle('odd', 'even') %>">
+<tr>
<td class="name"><%= link_to enumeration, edit_enumeration_path(enumeration) %></td>
<td class="tick"><%= checked_image enumeration.is_default? %></td>
<td class="tick"><%= checked_image enumeration.active? %></td>
@@ -27,7 +27,6 @@
</tr>
<% end %>
</table>
-<% reset_cycle %>
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% end %>