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/reports | |
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/reports')
-rw-r--r-- | app/views/reports/_details.html.erb | 5 | ||||
-rw-r--r-- | app/views/reports/_simple.html.erb | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/app/views/reports/_details.html.erb b/app/views/reports/_details.html.erb index ab7fe3620..998089caf 100644 --- a/app/views/reports/_details.html.erb +++ b/app/views/reports/_details.html.erb @@ -13,7 +13,7 @@ </tr></thead> <tbody> <% for row in rows %> -<tr class="<%= cycle("odd", "even") %>"> +<tr> <td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td> <% for status in @statuses %> <td><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, aggregate_path(@project, field_name, row, :status_id => status.id) %></td> @@ -25,5 +25,4 @@ <% end %> </tbody> </table> -<% end - reset_cycle %> +<% end %> diff --git a/app/views/reports/_simple.html.erb b/app/views/reports/_simple.html.erb index 9dca3554c..d6f51ad19 100644 --- a/app/views/reports/_simple.html.erb +++ b/app/views/reports/_simple.html.erb @@ -10,7 +10,7 @@ </tr></thead> <tbody> <% for row in rows %> -<tr class="<%= cycle("odd", "even") %>"> +<tr> <td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td> <td><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td> <td><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td> @@ -19,5 +19,4 @@ <% end %> </tbody> </table> -<% end - reset_cycle %> +<% end %> |