diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-25 11:44:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-25 11:44:12 +0000 |
commit | 9814dcf231b50bd1d8e712db8534051ff8a8c8c6 (patch) | |
tree | db40fb794b2ed5a87477c6d026e98123d3425b39 /app/views/admin | |
parent | 1eee6b3a30dfa2e0b7c9aaa5db3da3b3c9965b19 (diff) | |
download | redmine-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/admin')
-rw-r--r-- | app/views/admin/info.html.erb | 2 | ||||
-rw-r--r-- | app/views/admin/plugins.html.erb | 2 | ||||
-rw-r--r-- | app/views/admin/projects.html.erb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/admin/info.html.erb b/app/views/admin/info.html.erb index 2be1d28fd..c56d14eb6 100644 --- a/app/views/admin/info.html.erb +++ b/app/views/admin/info.html.erb @@ -4,7 +4,7 @@ <table class="list"> <% @checklist.each do |label, result| %> - <tr class="<%= cycle 'odd', 'even' %>"> + <tr> <td class="name"><%= label.is_a?(Symbol) ? l(label) : label %></td> <td class="tick"><span class="icon-only <%= (result ? 'icon-ok' : 'icon-error') %>"></span></td> </tr> diff --git a/app/views/admin/plugins.html.erb b/app/views/admin/plugins.html.erb index 020dbc818..e04e06a7b 100644 --- a/app/views/admin/plugins.html.erb +++ b/app/views/admin/plugins.html.erb @@ -3,7 +3,7 @@ <% if @plugins.any? %> <table class="list plugins"> <% @plugins.each do |plugin| %> - <tr id="plugin-<%= plugin.id %>" class="<%= cycle('odd', 'even') %>"> + <tr id="plugin-<%= plugin.id %>"> <td class="name"><span class="name"><%= plugin.name %></span> <%= content_tag('span', plugin.description, :class => 'description') unless plugin.description.blank? %> <%= content_tag('span', link_to(plugin.url, plugin.url), :class => 'url') unless plugin.url.blank? %> diff --git a/app/views/admin/projects.html.erb b/app/views/admin/projects.html.erb index 630e78607..077f87c27 100644 --- a/app/views/admin/projects.html.erb +++ b/app/views/admin/projects.html.erb @@ -27,7 +27,7 @@ </tr></thead> <tbody> <% project_tree(@projects, :init_level => true) do |project, level| %> - <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> + <tr class="<%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> <td class="name"><span><%= link_to_project_settings(project, {}, :title => project.short_description) %></span></td> <td><%= checked_image project.is_public? %></td> <td><%= format_date(project.created_on) %></td> |