summaryrefslogtreecommitdiffstats
path: root/app/views/wiki
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/wiki
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/wiki')
-rw-r--r--app/views/wiki/history.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/wiki/history.html.erb b/app/views/wiki/history.html.erb
index 136923460..e5e72b102 100644
--- a/app/views/wiki/history.html.erb
+++ b/app/views/wiki/history.html.erb
@@ -19,7 +19,7 @@
<% show_diff = @versions.size > 1 %>
<% line_num = 1 %>
<% @versions.each do |ver| %>
-<tr class="wiki-page-version <%= cycle("odd", "even") %>">
+<tr class="wiki-page-version">
<td class="id"><%= link_to ver.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td>
<td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}').prop('checked', true);") if show_diff && (line_num < @versions.size) %></td>
<td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>