summaryrefslogtreecommitdiffstats
path: root/app/views/roles
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-03 09:15:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-03 09:15:31 +0000
commit48f72a3d15def45352c0be4e7f27b2ba3852f949 (patch)
tree728515a1a7a51bac340ed908582780411e4f4a07 /app/views/roles
parent3e86a2ab52bcadea6ed92522a3d3e88b6dc4aa30 (diff)
downloadredmine-48f72a3d15def45352c0be4e7f27b2ba3852f949.tar.gz
redmine-48f72a3d15def45352c0be4e7f27b2ba3852f949.zip
Use css pseudo-classes instead "odd", "even" classes (#15361).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16050 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/roles')
-rw-r--r--app/views/roles/_form.html.erb2
-rw-r--r--app/views/roles/index.html.erb2
-rw-r--r--app/views/roles/permissions.html.erb2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/roles/_form.html.erb b/app/views/roles/_form.html.erb
index 39acc34a4..5f095e7b2 100644
--- a/app/views/roles/_form.html.erb
+++ b/app/views/roles/_form.html.erb
@@ -91,7 +91,7 @@
<% end %>
</tr>
<% Tracker.sorted.all.each do |tracker| %>
- <tr class="<%= cycle("odd", "even") %>">
+ <tr>
<td class="name"><%= tracker.name %></td>
<% permissions.each do |permission| %>
<td class="<%= "#{permission}_shown" %>"><%= check_box_tag "role[permissions_tracker_ids][#{permission}][]",
diff --git a/app/views/roles/index.html.erb b/app/views/roles/index.html.erb
index 8f059648b..ab0bbe8da 100644
--- a/app/views/roles/index.html.erb
+++ b/app/views/roles/index.html.erb
@@ -12,7 +12,7 @@
</tr></thead>
<tbody>
<% for role in @roles %>
- <tr class="<%= cycle("odd", "even") %> <%= role.builtin? ? "builtin" : "givable" %>">
+ <tr class="<%= role.builtin? ? "builtin" : "givable" %>">
<td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, edit_role_path(role))) %></td>
<td class="buttons">
<%= reorder_handle(role) unless role.builtin? %>
diff --git a/app/views/roles/permissions.html.erb b/app/views/roles/permissions.html.erb
index b403cffe1..ccaa95058 100644
--- a/app/views/roles/permissions.html.erb
+++ b/app/views/roles/permissions.html.erb
@@ -33,7 +33,7 @@
</tr>
<% end %>
<% perms_by_module[mod].each do |permission| %>
- <tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>">
+ <tr class="permission-<%= permission.name %>">
<td class="name">
<%= link_to_function('',
"toggleCheckboxesBySelector('.permission-#{permission.name} input')",