diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-03 09:15:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-03 09:15:31 +0000 |
commit | 48f72a3d15def45352c0be4e7f27b2ba3852f949 (patch) | |
tree | 728515a1a7a51bac340ed908582780411e4f4a07 /app | |
parent | 3e86a2ab52bcadea6ed92522a3d3e88b6dc4aa30 (diff) | |
download | redmine-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')
41 files changed, 44 insertions, 44 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 d9c32280d..a5667f272 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> diff --git a/app/views/auth_sources/index.html.erb b/app/views/auth_sources/index.html.erb index ecde2bf95..7a0ffa59d 100644 --- a/app/views/auth_sources/index.html.erb +++ b/app/views/auth_sources/index.html.erb @@ -14,7 +14,7 @@ </tr></thead> <tbody> <% for source in @auth_sources %> - <tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>"> + <tr id="auth-source-<%= source.id %>"> <td class="name"><%= link_to(source.name, :action => 'edit', :id => source)%></td> <td><%= source.auth_method_name %></td> <td><%= source.host %></td> diff --git a/app/views/boards/index.html.erb b/app/views/boards/index.html.erb index 29074130b..21280e1af 100644 --- a/app/views/boards/index.html.erb +++ b/app/views/boards/index.html.erb @@ -9,7 +9,7 @@ </tr></thead> <tbody> <% Board.board_tree(@boards) do |board, level| %> - <tr class="<%= cycle 'odd', 'even' %>"> + <tr> <td class="name" style="padding-left: <%= level * 18 %>px;"> <%= link_to board.name, project_board_path(board.project, board), :class => "board" %><br /> <%=h board.description %> diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb index 1f58acdc8..4a0a588e9 100644 --- a/app/views/boards/show.html.erb +++ b/app/views/boards/show.html.erb @@ -35,7 +35,7 @@ </tr></thead> <tbody> <% @topics.each do |topic| %> - <tr id="message-<%= topic.id %>" class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>"> + <tr id="message-<%= topic.id %>" class="message <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>"> <td class="subject icon <%= 'icon-sticky' if topic.sticky? %> <%= 'icon-locked' if topic.locked? %>"><%= link_to topic.subject, board_message_path(@board, topic) %></td> <td class="author"><%= link_to_user(topic.author) %></td> <td class="created_on"><%= format_time(topic.created_on) %></td> diff --git a/app/views/custom_fields/_index.html.erb b/app/views/custom_fields/_index.html.erb index 7a5d37283..417f1c345 100644 --- a/app/views/custom_fields/_index.html.erb +++ b/app/views/custom_fields/_index.html.erb @@ -12,7 +12,7 @@ <tbody> <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%> <% back_url = custom_fields_path(:tab => tab[:name]) %> - <tr class="<%= cycle("odd", "even") %>"> + <tr> <td class="name"><%= link_to custom_field.name, edit_custom_field_path(custom_field) %></td> <td><%= l(custom_field.format.label) %></td> <td><%= checked_image custom_field.is_required? %></td> diff --git a/app/views/email_addresses/_index.html.erb b/app/views/email_addresses/_index.html.erb index 644cd759b..2fcf0b496 100644 --- a/app/views/email_addresses/_index.html.erb +++ b/app/views/email_addresses/_index.html.erb @@ -1,7 +1,7 @@ <% if @addresses.present? %> <table class="list email_addresses"> <% @addresses.each do |address| %> - <tr class="<%= cycle("odd", "even") %>"> + <tr> <td class="email"><%= address.address %></td> <td class="buttons"> <%= toggle_email_address_notify_link(address) %> diff --git a/app/views/enumerations/index.html.erb b/app/views/enumerations/index.html.erb index 5f1d2eafb..542be0873 100644 --- a/app/views/enumerations/index.html.erb +++ b/app/views/enumerations/index.html.erb @@ -13,7 +13,7 @@ <th></th> </tr></thead> <% enumerations.each do |enumeration| %> -<tr class="<%= cycle('odd', 'even') %>"> +<tr> <td class="name"><%= link_to enumeration, edit_enumeration_path(enumeration) %></td> <td class="tick"><%= checked_image enumeration.is_default? %></td> <td class="tick"><%= checked_image enumeration.active? %></td> diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index decc7314e..e4c61fb1d 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -26,7 +26,7 @@ </tr> <% end -%> <% container.attachments.each do |file| %> - <tr class="file <%= cycle("odd", "even") %>"> + <tr class="file"> <td class="filename"><%= link_to_attachment file, :download => true, :title => file.description %></td> <td class="created_on"><%= format_time(file.created_on) %></td> <td class="filesize"><%= number_to_human_size(file.filesize) %></td> diff --git a/app/views/groups/_users.html.erb b/app/views/groups/_users.html.erb index 391edf4d8..8c2ab7e4b 100644 --- a/app/views/groups/_users.html.erb +++ b/app/views/groups/_users.html.erb @@ -8,7 +8,7 @@ </tr></thead> <tbody> <% @group.users.sort.each do |user| %> - <tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>"> + <tr id="user-<%= user.id %>"> <td class="name"><%= link_to_user user %></td> <td class="buttons"> <%= delete_link group_user_path(@group, :user_id => user), :remote => true %> diff --git a/app/views/groups/index.html.erb b/app/views/groups/index.html.erb index a8886d0d8..7b77fec22 100644 --- a/app/views/groups/index.html.erb +++ b/app/views/groups/index.html.erb @@ -24,7 +24,7 @@ </tr></thead> <tbody> <% @groups.each do |group| %> - <tr id="group-<%= group.id %>" class="<%= cycle 'odd', 'even' %> <%= "builtin" if group.builtin? %>"> + <tr id="group-<%= group.id %>" class="<%= "builtin" if group.builtin? %>"> <td class="name"><%= link_to group, edit_group_path(group) %></td> <td class="user_count"><%= (@user_count_by_group_id[group.id] || 0) unless group.builtin? %></td> <td class="buttons"><%= delete_link group unless group.builtin? %></td> diff --git a/app/views/issue_statuses/index.html.erb b/app/views/issue_statuses/index.html.erb index 8608402ca..f5e6538c2 100644 --- a/app/views/issue_statuses/index.html.erb +++ b/app/views/issue_statuses/index.html.erb @@ -16,7 +16,7 @@ </tr></thead> <tbody> <% for status in @issue_statuses %> - <tr class="<%= cycle("odd", "even") %>"> + <tr> <td class="name"><%= link_to status.name, edit_issue_status_path(status) %></td> <% if Issue.use_status_for_done_ratio? %> <td><%= status.default_done_ratio %></td> diff --git a/app/views/issues/_changesets.html.erb b/app/views/issues/_changesets.html.erb index f4b47c617..0751e79ff 100644 --- a/app/views/issues/_changesets.html.erb +++ b/app/views/issues/_changesets.html.erb @@ -1,5 +1,5 @@ <% changesets.each do |changeset| %> - <div class="changeset <%= cycle('odd', 'even') %>"> + <div class="changeset"> <p><%= link_to_revision(changeset, changeset.repository, :text => "#{l(:label_revision)} #{changeset.format_identifier}") %> <% if changeset.filechanges.any? && User.current.allowed_to?(:browse_repository, changeset.project) %> diff --git a/app/views/issues/_list.html.erb b/app/views/issues/_list.html.erb index 851fca1a3..9c29a8308 100644 --- a/app/views/issues/_list.html.erb +++ b/app/views/issues/_list.html.erb @@ -26,7 +26,7 @@ </td> </tr> <% end %> - <tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> + <tr id="issue-<%= issue.id %>" class="hascontextmenu <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td> <%= raw query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, issue)}</td>"}.join %> </tr> diff --git a/app/views/issues/_list_simple.html.erb b/app/views/issues/_list_simple.html.erb index 0d2850cd0..1e23b161b 100644 --- a/app/views/issues/_list_simple.html.erb +++ b/app/views/issues/_list_simple.html.erb @@ -9,7 +9,7 @@ </tr></thead> <tbody> <% for issue in issues %> - <tr id="issue-<%= h(issue.id) %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %>"> + <tr id="issue-<%= h(issue.id) %>" class="hascontextmenu <%= issue.css_classes %>"> <td class="id"> <%= check_box_tag("ids[]", issue.id, false, :style => 'display:none;', :id => nil) %> <%= link_to("#{issue.tracker} ##{issue.id}", issue_path(issue)) %> diff --git a/app/views/principal_memberships/_index.html.erb b/app/views/principal_memberships/_index.html.erb index 76a629f95..7cf6f55bb 100644 --- a/app/views/principal_memberships/_index.html.erb +++ b/app/views/principal_memberships/_index.html.erb @@ -13,7 +13,7 @@ <tbody> <% principal.memberships.preload(:member_roles => :role).each do |membership| %> <% next if membership.new_record? %> - <tr id="member-<%= membership.id %>" class="<%= cycle 'odd', 'even' %> class"> + <tr id="member-<%= membership.id %>" class="class"> <td class="project name"> <%= link_to_project membership.project %> </td> diff --git a/app/views/projects/settings/_activities.html.erb b/app/views/projects/settings/_activities.html.erb index db1a3c286..27a27de5d 100644 --- a/app/views/projects/settings/_activities.html.erb +++ b/app/views/projects/settings/_activities.html.erb @@ -12,7 +12,7 @@ <% @project.activities(true).each do |enumeration| %> <%= fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %> - <tr class="<%= cycle('odd', 'even') %>"> + <tr> <td class="name"> <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %> <%= enumeration %> diff --git a/app/views/projects/settings/_boards.html.erb b/app/views/projects/settings/_boards.html.erb index 16506c889..186a25b2a 100644 --- a/app/views/projects/settings/_boards.html.erb +++ b/app/views/projects/settings/_boards.html.erb @@ -4,7 +4,7 @@ <div class="table-list-cell"><%= l(:label_board) %></div> </div> <%= render_boards_tree(@project.boards) do |board, level| %> - <div class="table-list-row <%= cycle 'odd', 'even' %>"> + <div class="table-list-row"> <div class="table-list-cell name" style="padding-left: <%= 2 + level * 16 %>px"> <%= link_to board.name, project_board_path(@project, board) %> </div> diff --git a/app/views/projects/settings/_issue_categories.html.erb b/app/views/projects/settings/_issue_categories.html.erb index 8a04f2555..2eb416c12 100644 --- a/app/views/projects/settings/_issue_categories.html.erb +++ b/app/views/projects/settings/_issue_categories.html.erb @@ -8,7 +8,7 @@ <tbody> <% for category in @project.issue_categories %> <% unless category.new_record? %> - <tr class="<%= cycle 'odd', 'even' %>"> + <tr> <td class="name"><%= category.name %></td> <td><%= category.assigned_to.name if category.assigned_to %></td> <td class="buttons"> diff --git a/app/views/projects/settings/_members.html.erb b/app/views/projects/settings/_members.html.erb index 05707fe78..cb24c39cb 100644 --- a/app/views/projects/settings/_members.html.erb +++ b/app/views/projects/settings/_members.html.erb @@ -16,7 +16,7 @@ <tbody> <% members.each do |member| %> <% next if member.new_record? %> - <tr id="member-<%= member.id %>" class="<%= cycle 'odd', 'even' %> member"> + <tr id="member-<%= member.id %>" class="member"> <td class="name icon icon-<%= member.principal.class.name.downcase %>"><%= link_to_user member.principal %></td> <td class="roles"> <span id="member-<%= member.id %>-roles"><%= member.roles.sort.collect(&:to_s).join(', ') %></span> diff --git a/app/views/projects/settings/_repositories.html.erb b/app/views/projects/settings/_repositories.html.erb index e60164caa..d0756742a 100644 --- a/app/views/projects/settings/_repositories.html.erb +++ b/app/views/projects/settings/_repositories.html.erb @@ -11,9 +11,9 @@ </thead> <tbody> <% @project.repositories.sort.each do |repository| %> - <tr class="<%= cycle 'odd', 'even' %>"> + <tr> <td class="name"> - <%= link_to repository.identifier, + <%= link_to repository.identifier, {:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %> </td> <td><%= checked_image repository.is_default? %></td> diff --git a/app/views/projects/settings/_versions.html.erb b/app/views/projects/settings/_versions.html.erb index 8173433f6..81f3d3353 100644 --- a/app/views/projects/settings/_versions.html.erb +++ b/app/views/projects/settings/_versions.html.erb @@ -22,7 +22,7 @@ </tr></thead> <tbody> <% @versions.sort.each do |version| %> - <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>"> + <tr class="version <%=h version.status %> <%= 'shared' if version.project != @project %>"> <td class="name <%= 'icon icon-shared' if version.project != @project %>"><%= link_to_version version %></td> <td class="date"><%= format_date(version.effective_date) %></td> <td class="description"><%= version.description %></td> diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index 87e398ee4..7de31023c 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -49,7 +49,7 @@ </thead> <tbody> <% @trackers.each do |tracker| %> - <tr class="<%= cycle("odd", "even") %>"> + <tr> <td class="name"> <%= link_to tracker.name, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %> </td> diff --git a/app/views/queries/index.html.erb b/app/views/queries/index.html.erb index b0dbc05be..c36c0ca1a 100644 --- a/app/views/queries/index.html.erb +++ b/app/views/queries/index.html.erb @@ -9,7 +9,7 @@ <% else %> <table class="list"> <% @queries.each do |query| %> - <tr class="<%= cycle('odd', 'even') %>"> + <tr> <td class="name"> <%= link_to query.name, :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %> </td> diff --git a/app/views/reports/_details.html.erb b/app/views/reports/_details.html.erb index ab7fe3620..584162939 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> diff --git a/app/views/reports/_simple.html.erb b/app/views/reports/_simple.html.erb index 9dca3554c..c7c88aff4 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> diff --git a/app/views/repositories/_revisions.html.erb b/app/views/repositories/_revisions.html.erb index 9c72204fa..84ef2cdd5 100644 --- a/app/views/repositories/_revisions.html.erb +++ b/app/views/repositories/_revisions.html.erb @@ -33,7 +33,7 @@ end %> <% show_diff = revisions.size > 1 %> <% line_num = 1 %> <% revisions.each do |changeset| %> -<tr class="changeset <%= cycle 'odd', 'even' %>"> +<tr class="changeset"> <% id_style = (show_revision_graph ? "padding-left:#{(graph_space + 1) * 20}px" : nil) %> <%= content_tag(:td, :class => 'id', :style => id_style) do %> <%= link_to_revision(changeset, @repository) %> diff --git a/app/views/repositories/committers.html.erb b/app/views/repositories/committers.html.erb index b942e4b82..f23e10252 100644 --- a/app/views/repositories/committers.html.erb +++ b/app/views/repositories/committers.html.erb @@ -17,7 +17,7 @@ <tbody> <% i = 0 -%> <% @committers.each do |committer, user_id| -%> - <tr class="<%= cycle 'odd', 'even' %>"> + <tr> <td><%= committer %></td> <td> <%= hidden_field_tag "committers[#{i}][]", committer, :id => nil %> 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')", diff --git a/app/views/timelog/_list.html.erb b/app/views/timelog/_list.html.erb index 3721df274..e84f428c3 100644 --- a/app/views/timelog/_list.html.erb +++ b/app/views/timelog/_list.html.erb @@ -31,7 +31,7 @@ </td> </tr> <% end %> - <tr id="time-entry-<%= entry.id %>" class="time-entry <%= cycle("odd", "even") %> hascontextmenu"> + <tr id="time-entry-<%= entry.id %>" class="time-entry hascontextmenu"> <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td> <%= raw @query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, entry)}</td>"}.join %> <td class="buttons"> diff --git a/app/views/timelog/_report_criteria.html.erb b/app/views/timelog/_report_criteria.html.erb index f4181172f..6af122ec4 100644 --- a/app/views/timelog/_report_criteria.html.erb +++ b/app/views/timelog/_report_criteria.html.erb @@ -1,7 +1,7 @@ <% @report.hours.collect {|h| h[criterias[level]].to_s}.uniq.each do |value| %> <% hours_for_value = select_hours(hours, criterias[level], value) -%> <% next if hours_for_value.empty? -%> -<tr class="<%= cycle('odd', 'even') %> <%= criterias.length > level+1 ? 'subtotal' : 'last-level' %>"> +<tr class="<%= criterias.length > level+1 ? 'subtotal' : 'last-level' %>"> <%= ("<td></td>" * level).html_safe %> <td class="name"><%= format_criteria_value(@report.available_criteria[criterias[level]], value) %></td> <%= ("<td></td>" * (criterias.length - level - 1)).html_safe -%> diff --git a/app/views/trackers/fields.html.erb b/app/views/trackers/fields.html.erb index b53f1fa0f..61d1da46a 100644 --- a/app/views/trackers/fields.html.erb +++ b/app/views/trackers/fields.html.erb @@ -25,7 +25,7 @@ </td> </tr> <% Tracker::CORE_FIELDS.each do |field| %> - <tr class="<%= cycle("odd", "even") %>"> + <tr> <td class="name"> <%= link_to_function('', "toggleCheckboxesBySelector('input.core-field-#{field}')", :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}", @@ -48,7 +48,7 @@ </td> </tr> <% @custom_fields.each do |field| %> - <tr class="<%= cycle("odd", "even") %>"> + <tr> <td class="name"> <%= link_to_function('', "toggleCheckboxesBySelector('input.custom-field-#{field.id}')", :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}", diff --git a/app/views/trackers/index.html.erb b/app/views/trackers/index.html.erb index 5f40cf0ee..8f6c210b7 100644 --- a/app/views/trackers/index.html.erb +++ b/app/views/trackers/index.html.erb @@ -13,7 +13,7 @@ </tr></thead> <tbody> <% for tracker in @trackers %> - <tr class="<%= cycle("odd", "even") %>"> + <tr> <td class="name"><%= link_to tracker.name, edit_tracker_path(tracker) %></td> <td> <% unless tracker.workflow_rules.count > 0 %> diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 60e42c603..3fc82b640 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -37,7 +37,7 @@ </tr></thead> <tbody> <% for user in @users -%> - <tr class="<%= user.css_classes %> <%= cycle("odd", "even") %>"> + <tr class="<%= user.css_classes %>"> <td class="username"><%= avatar(user, :size => "14") %><%= link_to user.login, edit_user_path(user) %></td> <td class="firstname"><%= user.firstname %></td> <td class="lastname"><%= user.lastname %></td> 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> diff --git a/app/views/workflows/_form.html.erb b/app/views/workflows/_form.html.erb index 9fb2705e7..def117b3f 100644 --- a/app/views/workflows/_form.html.erb +++ b/app/views/workflows/_form.html.erb @@ -24,7 +24,7 @@ <tbody> <% for old_status in [nil] + @statuses %> <% next if old_status.nil? && name != 'always' %> - <tr class="<%= cycle("odd", "even") %>"> + <tr> <td class="name"> <%= link_to_function('', "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.try(:id) || 0}')", :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}", diff --git a/app/views/workflows/index.html.erb b/app/views/workflows/index.html.erb index 1a0780532..66785a40c 100644 --- a/app/views/workflows/index.html.erb +++ b/app/views/workflows/index.html.erb @@ -17,7 +17,7 @@ </thead> <tbody> <% @trackers.each do |tracker| -%> -<tr class="<%= cycle('odd', 'even') %>"> +<tr> <td class="name"><%= tracker.name %></td> <% @roles.each do |role| -%> <% count = @workflow_counts[[tracker.id, role.id]] || 0 %> diff --git a/app/views/workflows/permissions.html.erb b/app/views/workflows/permissions.html.erb index 0fb4c8bb6..fc886e0d4 100644 --- a/app/views/workflows/permissions.html.erb +++ b/app/views/workflows/permissions.html.erb @@ -60,7 +60,7 @@ </td> </tr> <% @fields.each do |field, name| %> - <tr class="<%= cycle("odd", "even") %>"> + <tr> <td class="name"> <%= name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %> </td> @@ -80,7 +80,7 @@ </td> </tr> <% @custom_fields.each do |field| %> - <tr class="<%= cycle("odd", "even") %>"> + <tr> <td class="name"> <%= field.name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %> </td> |