diff options
Diffstat (limited to 'app/views/projects/settings')
6 files changed, 9 insertions, 9 deletions
diff --git a/app/views/projects/settings/_activities.html.erb b/app/views/projects/settings/_activities.html.erb index 27a27de5d..db1a3c286 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> + <tr class="<%= cycle('odd', 'even') %>"> <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 186a25b2a..16506c889 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"> + <div class="table-list-row <%= cycle 'odd', 'even' %>"> <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 2eb416c12..8a04f2555 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> + <tr class="<%= cycle 'odd', 'even' %>"> <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 471532266..05707fe78 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="member"> + <tr id="member-<%= member.id %>" class="<%= cycle 'odd', 'even' %> 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> @@ -54,7 +54,7 @@ </td> <%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %> </tr> -<% end %> +<% end; reset_cycle %> </tbody> </table> <% else %> diff --git a/app/views/projects/settings/_repositories.html.erb b/app/views/projects/settings/_repositories.html.erb index d0756742a..e60164caa 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> + <tr class="<%= cycle 'odd', 'even' %>"> <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 0c1714446..8173433f6 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 <%=h version.status %> <%= 'shared' if version.project != @project %>"> + <tr class="version <%= cycle 'odd', 'even' %> <%=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> @@ -36,7 +36,7 @@ <% end %> </td> </tr> -<% end %> +<% end; reset_cycle %> </tbody> </table> <% else %> |