summaryrefslogtreecommitdiffstats
path: root/app/views/projects
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-25 11:44:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-25 11:44:12 +0000
commit9814dcf231b50bd1d8e712db8534051ff8a8c8c6 (patch)
treedb40fb794b2ed5a87477c6d026e98123d3425b39 /app/views/projects
parent1eee6b3a30dfa2e0b7c9aaa5db3da3b3c9965b19 (diff)
downloadredmine-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/projects')
-rw-r--r--app/views/projects/settings/_activities.html.erb2
-rw-r--r--app/views/projects/settings/_boards.html.erb2
-rw-r--r--app/views/projects/settings/_issue_categories.html.erb2
-rw-r--r--app/views/projects/settings/_members.html.erb4
-rw-r--r--app/views/projects/settings/_repositories.html.erb4
-rw-r--r--app/views/projects/settings/_versions.html.erb4
-rw-r--r--app/views/projects/show.html.erb2
7 files changed, 10 insertions, 10 deletions
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 99479e55a..bf0b786fd 100644
--- a/app/views/projects/settings/_boards.html.erb
+++ b/app/views/projects/settings/_boards.html.erb
@@ -8,7 +8,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 d1e219ee6..3cd78e387 100644
--- a/app/views/projects/settings/_issue_categories.html.erb
+++ b/app/views/projects/settings/_issue_categories.html.erb
@@ -10,7 +10,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 4009e7b15..39f50c105 100644
--- a/app/views/projects/settings/_members.html.erb
+++ b/app/views/projects/settings/_members.html.erb
@@ -15,7 +15,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>
@@ -32,7 +32,7 @@
</td>
<%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %>
</tr>
-<% end; reset_cycle %>
+<% end %>
</tbody>
</table>
<% else %>
diff --git a/app/views/projects/settings/_repositories.html.erb b/app/views/projects/settings/_repositories.html.erb
index 61a1bb24e..f460278a0 100644
--- a/app/views/projects/settings/_repositories.html.erb
+++ b/app/views/projects/settings/_repositories.html.erb
@@ -15,9 +15,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 c88bd01a4..f402fff7e 100644
--- a/app/views/projects/settings/_versions.html.erb
+++ b/app/views/projects/settings/_versions.html.erb
@@ -25,7 +25,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>
@@ -39,7 +39,7 @@
<% end %>
</td>
</tr>
-<% end; reset_cycle %>
+<% end %>
</tbody>
</table>
<% else %>
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>