summaryrefslogtreecommitdiffstats
path: root/app/views/roles
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-03 09:59:03 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-03 09:59:03 +0000
commit49fcec80b7eb42debb749b7eef27b315c137d19f (patch)
tree36c336301429ef1eadd6d47e6031932b8a1a1a00 /app/views/roles
parent826e978806bbe80d266c1ebdda64fd84b0f5208a (diff)
downloadredmine-49fcec80b7eb42debb749b7eef27b315c137d19f.tar.gz
redmine-49fcec80b7eb42debb749b7eef27b315c137d19f.zip
Reverts r16051 and r16050 for now (#15361).
git-svn-id: http://svn.redmine.org/redmine/trunk@16052 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 5f095e7b2..39acc34a4 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>
+ <tr class="<%= cycle("odd", "even") %>">
<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 ab0bbe8da..8f059648b 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="<%= role.builtin? ? "builtin" : "givable" %>">
+ <tr class="<%= cycle("odd", "even") %> <%= 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 ccaa95058..b403cffe1 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="permission-<%= permission.name %>">
+ <tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>">
<td class="name">
<%= link_to_function('',
"toggleCheckboxesBySelector('.permission-#{permission.name} input')",