##// END OF EJS Templates
Reverts r16051 and r16050 for now (#15361)....
Jean-Philippe Lang -
r15670:49fcec80b7eb
parent child
Show More
@@ -4,7 +4,7
4
4
5 <table class="list">
5 <table class="list">
6 <% @checklist.each do |label, result| %>
6 <% @checklist.each do |label, result| %>
7 <tr>
7 <tr class="<%= cycle 'odd', 'even' %>">
8 <td class="name"><%= label.is_a?(Symbol) ? l(label) : label %></td>
8 <td class="name"><%= label.is_a?(Symbol) ? l(label) : label %></td>
9 <td class="tick"><span class="icon-only <%= (result ? 'icon-ok' : 'icon-error') %>"></span></td>
9 <td class="tick"><span class="icon-only <%= (result ? 'icon-ok' : 'icon-error') %>"></span></td>
10 </tr>
10 </tr>
@@ -3,7 +3,7
3 <% if @plugins.any? %>
3 <% if @plugins.any? %>
4 <table class="list plugins">
4 <table class="list plugins">
5 <% @plugins.each do |plugin| %>
5 <% @plugins.each do |plugin| %>
6 <tr id="plugin-<%= plugin.id %>">
6 <tr id="plugin-<%= plugin.id %>" class="<%= cycle('odd', 'even') %>">
7 <td class="name"><span class="name"><%= plugin.name %></span>
7 <td class="name"><span class="name"><%= plugin.name %></span>
8 <%= content_tag('span', plugin.description, :class => 'description') unless plugin.description.blank? %>
8 <%= content_tag('span', plugin.description, :class => 'description') unless plugin.description.blank? %>
9 <%= content_tag('span', link_to(plugin.url, plugin.url), :class => 'url') unless plugin.url.blank? %>
9 <%= content_tag('span', link_to(plugin.url, plugin.url), :class => 'url') unless plugin.url.blank? %>
@@ -27,7 +27,7
27 </tr></thead>
27 </tr></thead>
28 <tbody>
28 <tbody>
29 <% project_tree(@projects, :init_level => true) do |project, level| %>
29 <% project_tree(@projects, :init_level => true) do |project, level| %>
30 <tr class="<%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
30 <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
31 <td class="name"><span><%= link_to_project_settings(project, {}, :title => project.short_description) %></span></td>
31 <td class="name"><span><%= link_to_project_settings(project, {}, :title => project.short_description) %></span></td>
32 <td><%= checked_image project.is_public? %></td>
32 <td><%= checked_image project.is_public? %></td>
33 <td><%= format_date(project.created_on) %></td>
33 <td><%= format_date(project.created_on) %></td>
@@ -14,7 +14,7
14 </tr></thead>
14 </tr></thead>
15 <tbody>
15 <tbody>
16 <% for source in @auth_sources %>
16 <% for source in @auth_sources %>
17 <tr id="auth-source-<%= source.id %>">
17 <tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>">
18 <td class="name"><%= link_to(source.name, :action => 'edit', :id => source)%></td>
18 <td class="name"><%= link_to(source.name, :action => 'edit', :id => source)%></td>
19 <td><%= source.auth_method_name %></td>
19 <td><%= source.auth_method_name %></td>
20 <td><%= source.host %></td>
20 <td><%= source.host %></td>
@@ -9,7 +9,7
9 </tr></thead>
9 </tr></thead>
10 <tbody>
10 <tbody>
11 <% Board.board_tree(@boards) do |board, level| %>
11 <% Board.board_tree(@boards) do |board, level| %>
12 <tr>
12 <tr class="<%= cycle 'odd', 'even' %>">
13 <td class="name" style="padding-left: <%= level * 18 %>px;">
13 <td class="name" style="padding-left: <%= level * 18 %>px;">
14 <%= link_to board.name, project_board_path(board.project, board), :class => "board" %><br />
14 <%= link_to board.name, project_board_path(board.project, board), :class => "board" %><br />
15 <%=h board.description %>
15 <%=h board.description %>
@@ -35,7 +35,7
35 </tr></thead>
35 </tr></thead>
36 <tbody>
36 <tbody>
37 <% @topics.each do |topic| %>
37 <% @topics.each do |topic| %>
38 <tr id="message-<%= topic.id %>" class="message <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
38 <tr id="message-<%= topic.id %>" class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
39 <td class="subject icon <%= 'icon-sticky' if topic.sticky? %> <%= 'icon-locked' if topic.locked? %>"><%= link_to topic.subject, board_message_path(@board, topic) %></td>
39 <td class="subject icon <%= 'icon-sticky' if topic.sticky? %> <%= 'icon-locked' if topic.locked? %>"><%= link_to topic.subject, board_message_path(@board, topic) %></td>
40 <td class="author"><%= link_to_user(topic.author) %></td>
40 <td class="author"><%= link_to_user(topic.author) %></td>
41 <td class="created_on"><%= format_time(topic.created_on) %></td>
41 <td class="created_on"><%= format_time(topic.created_on) %></td>
@@ -12,7 +12,7
12 <tbody>
12 <tbody>
13 <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%>
13 <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%>
14 <% back_url = custom_fields_path(:tab => tab[:name]) %>
14 <% back_url = custom_fields_path(:tab => tab[:name]) %>
15 <tr>
15 <tr class="<%= cycle("odd", "even") %>">
16 <td class="name"><%= link_to custom_field.name, edit_custom_field_path(custom_field) %></td>
16 <td class="name"><%= link_to custom_field.name, edit_custom_field_path(custom_field) %></td>
17 <td><%= l(custom_field.format.label) %></td>
17 <td><%= l(custom_field.format.label) %></td>
18 <td><%= checked_image custom_field.is_required? %></td>
18 <td><%= checked_image custom_field.is_required? %></td>
@@ -25,6 +25,6
25 <%= delete_link custom_field_path(custom_field) %>
25 <%= delete_link custom_field_path(custom_field) %>
26 </td>
26 </td>
27 </tr>
27 </tr>
28 <% end %>
28 <% end; reset_cycle %>
29 </tbody>
29 </tbody>
30 </table>
30 </table>
@@ -1,7 +1,7
1 <% if @addresses.present? %>
1 <% if @addresses.present? %>
2 <table class="list email_addresses">
2 <table class="list email_addresses">
3 <% @addresses.each do |address| %>
3 <% @addresses.each do |address| %>
4 <tr>
4 <tr class="<%= cycle("odd", "even") %>">
5 <td class="email"><%= address.address %></td>
5 <td class="email"><%= address.address %></td>
6 <td class="buttons">
6 <td class="buttons">
7 <%= toggle_email_address_notify_link(address) %>
7 <%= toggle_email_address_notify_link(address) %>
@@ -13,7 +13,7
13 <th></th>
13 <th></th>
14 </tr></thead>
14 </tr></thead>
15 <% enumerations.each do |enumeration| %>
15 <% enumerations.each do |enumeration| %>
16 <tr>
16 <tr class="<%= cycle('odd', 'even') %>">
17 <td class="name"><%= link_to enumeration, edit_enumeration_path(enumeration) %></td>
17 <td class="name"><%= link_to enumeration, edit_enumeration_path(enumeration) %></td>
18 <td class="tick"><%= checked_image enumeration.is_default? %></td>
18 <td class="tick"><%= checked_image enumeration.is_default? %></td>
19 <td class="tick"><%= checked_image enumeration.active? %></td>
19 <td class="tick"><%= checked_image enumeration.active? %></td>
@@ -24,6 +24,7
24 </tr>
24 </tr>
25 <% end %>
25 <% end %>
26 </table>
26 </table>
27 <% reset_cycle %>
27 <% end %>
28 <% end %>
28
29
29 <p><%= link_to l(:label_enumeration_new), new_enumeration_path(:type => klass.name) %></p>
30 <p><%= link_to l(:label_enumeration_new), new_enumeration_path(:type => klass.name) %></p>
@@ -26,7 +26,7
26 </tr>
26 </tr>
27 <% end -%>
27 <% end -%>
28 <% container.attachments.each do |file| %>
28 <% container.attachments.each do |file| %>
29 <tr class="file">
29 <tr class="file <%= cycle("odd", "even") %>">
30 <td class="filename"><%= link_to_attachment file, :download => true, :title => file.description %></td>
30 <td class="filename"><%= link_to_attachment file, :download => true, :title => file.description %></td>
31 <td class="created_on"><%= format_time(file.created_on) %></td>
31 <td class="created_on"><%= format_time(file.created_on) %></td>
32 <td class="filesize"><%= number_to_human_size(file.filesize) %></td>
32 <td class="filesize"><%= number_to_human_size(file.filesize) %></td>
@@ -37,7 +37,8
37 :data => {:confirm => l(:text_are_you_sure)}, :method => :delete) if delete_allowed %>
37 :data => {:confirm => l(:text_are_you_sure)}, :method => :delete) if delete_allowed %>
38 </td>
38 </td>
39 </tr>
39 </tr>
40 <% end %>
40 <% end
41 reset_cycle %>
41 <% end %>
42 <% end %>
42 </tbody>
43 </tbody>
43 </table>
44 </table>
@@ -8,7 +8,7
8 </tr></thead>
8 </tr></thead>
9 <tbody>
9 <tbody>
10 <% @group.users.sort.each do |user| %>
10 <% @group.users.sort.each do |user| %>
11 <tr id="user-<%= user.id %>">
11 <tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>">
12 <td class="name"><%= link_to_user user %></td>
12 <td class="name"><%= link_to_user user %></td>
13 <td class="buttons">
13 <td class="buttons">
14 <%= delete_link group_user_path(@group, :user_id => user), :remote => true %>
14 <%= delete_link group_user_path(@group, :user_id => user), :remote => true %>
@@ -24,7 +24,7
24 </tr></thead>
24 </tr></thead>
25 <tbody>
25 <tbody>
26 <% @groups.each do |group| %>
26 <% @groups.each do |group| %>
27 <tr id="group-<%= group.id %>" class="<%= "builtin" if group.builtin? %>">
27 <tr id="group-<%= group.id %>" class="<%= cycle 'odd', 'even' %> <%= "builtin" if group.builtin? %>">
28 <td class="name"><%= link_to group, edit_group_path(group) %></td>
28 <td class="name"><%= link_to group, edit_group_path(group) %></td>
29 <td class="user_count"><%= (@user_count_by_group_id[group.id] || 0) unless group.builtin? %></td>
29 <td class="user_count"><%= (@user_count_by_group_id[group.id] || 0) unless group.builtin? %></td>
30 <td class="buttons"><%= delete_link group unless group.builtin? %></td>
30 <td class="buttons"><%= delete_link group unless group.builtin? %></td>
@@ -16,7 +16,7
16 </tr></thead>
16 </tr></thead>
17 <tbody>
17 <tbody>
18 <% for status in @issue_statuses %>
18 <% for status in @issue_statuses %>
19 <tr>
19 <tr class="<%= cycle("odd", "even") %>">
20 <td class="name"><%= link_to status.name, edit_issue_status_path(status) %></td>
20 <td class="name"><%= link_to status.name, edit_issue_status_path(status) %></td>
21 <% if Issue.use_status_for_done_ratio? %>
21 <% if Issue.use_status_for_done_ratio? %>
22 <td><%= status.default_done_ratio %></td>
22 <td><%= status.default_done_ratio %></td>
@@ -1,5 +1,5
1 <% changesets.each do |changeset| %>
1 <% changesets.each do |changeset| %>
2 <div class="changeset">
2 <div class="changeset <%= cycle('odd', 'even') %>">
3 <p><%= link_to_revision(changeset, changeset.repository,
3 <p><%= link_to_revision(changeset, changeset.repository,
4 :text => "#{l(:label_revision)} #{changeset.format_identifier}") %>
4 :text => "#{l(:label_revision)} #{changeset.format_identifier}") %>
5 <% if changeset.filechanges.any? && User.current.allowed_to?(:browse_repository, changeset.project) %>
5 <% if changeset.filechanges.any? && User.current.allowed_to?(:browse_repository, changeset.project) %>
@@ -16,6 +16,7
16 <tbody>
16 <tbody>
17 <% grouped_issue_list(issues, @query, @issue_count_by_group) do |issue, level, group_name, group_count, group_totals| -%>
17 <% grouped_issue_list(issues, @query, @issue_count_by_group) do |issue, level, group_name, group_count, group_totals| -%>
18 <% if group_name %>
18 <% if group_name %>
19 <% reset_cycle %>
19 <tr class="group open">
20 <tr class="group open">
20 <td colspan="<%= query.inline_columns.size + 1 %>">
21 <td colspan="<%= query.inline_columns.size + 1 %>">
21 <span class="expander" onclick="toggleRowGroup(this);">&nbsp;</span>
22 <span class="expander" onclick="toggleRowGroup(this);">&nbsp;</span>
@@ -25,7 +26,7
25 </td>
26 </td>
26 </tr>
27 </tr>
27 <% end %>
28 <% end %>
28 <tr id="issue-<%= issue.id %>" class="hascontextmenu <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
29 <tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
29 <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
30 <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
30 <%= raw query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, issue)}</td>"}.join %>
31 <%= raw query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, issue)}</td>"}.join %>
31 </tr>
32 </tr>
@@ -9,7 +9,7
9 </tr></thead>
9 </tr></thead>
10 <tbody>
10 <tbody>
11 <% for issue in issues %>
11 <% for issue in issues %>
12 <tr id="issue-<%= h(issue.id) %>" class="hascontextmenu <%= issue.css_classes %>">
12 <tr id="issue-<%= h(issue.id) %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %>">
13 <td class="id">
13 <td class="id">
14 <%= check_box_tag("ids[]", issue.id, false, :style => 'display:none;', :id => nil) %>
14 <%= check_box_tag("ids[]", issue.id, false, :style => 'display:none;', :id => nil) %>
15 <%= link_to("#{issue.tracker} ##{issue.id}", issue_path(issue)) %>
15 <%= link_to("#{issue.tracker} ##{issue.id}", issue_path(issue)) %>
@@ -13,7 +13,7
13 <tbody>
13 <tbody>
14 <% principal.memberships.preload(:member_roles => :role).each do |membership| %>
14 <% principal.memberships.preload(:member_roles => :role).each do |membership| %>
15 <% next if membership.new_record? %>
15 <% next if membership.new_record? %>
16 <tr id="member-<%= membership.id %>" class="class">
16 <tr id="member-<%= membership.id %>" class="<%= cycle 'odd', 'even' %> class">
17 <td class="project name">
17 <td class="project name">
18 <%= link_to_project membership.project %>
18 <%= link_to_project membership.project %>
19 </td>
19 </td>
@@ -44,7 +44,7
44 </td>
44 </td>
45 <%= call_table_row_hook principal, membership %>
45 <%= call_table_row_hook principal, membership %>
46 </tr>
46 </tr>
47 <% end %>
47 <% end; reset_cycle %>
48 </tbody>
48 </tbody>
49 </table>
49 </table>
50 <% else %>
50 <% else %>
@@ -12,7 +12,7
12
12
13 <% @project.activities(true).each do |enumeration| %>
13 <% @project.activities(true).each do |enumeration| %>
14 <%= fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
14 <%= fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
15 <tr>
15 <tr class="<%= cycle('odd', 'even') %>">
16 <td class="name">
16 <td class="name">
17 <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
17 <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
18 <%= enumeration %>
18 <%= enumeration %>
@@ -4,7 +4,7
4 <div class="table-list-cell"><%= l(:label_board) %></div>
4 <div class="table-list-cell"><%= l(:label_board) %></div>
5 </div>
5 </div>
6 <%= render_boards_tree(@project.boards) do |board, level| %>
6 <%= render_boards_tree(@project.boards) do |board, level| %>
7 <div class="table-list-row">
7 <div class="table-list-row <%= cycle 'odd', 'even' %>">
8 <div class="table-list-cell name" style="padding-left: <%= 2 + level * 16 %>px">
8 <div class="table-list-cell name" style="padding-left: <%= 2 + level * 16 %>px">
9 <%= link_to board.name, project_board_path(@project, board) %>
9 <%= link_to board.name, project_board_path(@project, board) %>
10 </div>
10 </div>
@@ -8,7 +8,7
8 <tbody>
8 <tbody>
9 <% for category in @project.issue_categories %>
9 <% for category in @project.issue_categories %>
10 <% unless category.new_record? %>
10 <% unless category.new_record? %>
11 <tr>
11 <tr class="<%= cycle 'odd', 'even' %>">
12 <td class="name"><%= category.name %></td>
12 <td class="name"><%= category.name %></td>
13 <td><%= category.assigned_to.name if category.assigned_to %></td>
13 <td><%= category.assigned_to.name if category.assigned_to %></td>
14 <td class="buttons">
14 <td class="buttons">
@@ -16,7 +16,7
16 <tbody>
16 <tbody>
17 <% members.each do |member| %>
17 <% members.each do |member| %>
18 <% next if member.new_record? %>
18 <% next if member.new_record? %>
19 <tr id="member-<%= member.id %>" class="member">
19 <tr id="member-<%= member.id %>" class="<%= cycle 'odd', 'even' %> member">
20 <td class="name icon icon-<%= member.principal.class.name.downcase %>"><%= link_to_user member.principal %></td>
20 <td class="name icon icon-<%= member.principal.class.name.downcase %>"><%= link_to_user member.principal %></td>
21 <td class="roles">
21 <td class="roles">
22 <span id="member-<%= member.id %>-roles"><%= member.roles.sort.collect(&:to_s).join(', ') %></span>
22 <span id="member-<%= member.id %>-roles"><%= member.roles.sort.collect(&:to_s).join(', ') %></span>
@@ -54,7 +54,7
54 </td>
54 </td>
55 <%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %>
55 <%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %>
56 </tr>
56 </tr>
57 <% end %>
57 <% end; reset_cycle %>
58 </tbody>
58 </tbody>
59 </table>
59 </table>
60 <% else %>
60 <% else %>
@@ -11,9 +11,9
11 </thead>
11 </thead>
12 <tbody>
12 <tbody>
13 <% @project.repositories.sort.each do |repository| %>
13 <% @project.repositories.sort.each do |repository| %>
14 <tr>
14 <tr class="<%= cycle 'odd', 'even' %>">
15 <td class="name">
15 <td class="name">
16 <%= link_to repository.identifier,
16 <%= link_to repository.identifier,
17 {:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %>
17 {:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %>
18 </td>
18 </td>
19 <td><%= checked_image repository.is_default? %></td>
19 <td><%= checked_image repository.is_default? %></td>
@@ -22,7 +22,7
22 </tr></thead>
22 </tr></thead>
23 <tbody>
23 <tbody>
24 <% @versions.sort.each do |version| %>
24 <% @versions.sort.each do |version| %>
25 <tr class="version <%=h version.status %> <%= 'shared' if version.project != @project %>">
25 <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>">
26 <td class="name <%= 'icon icon-shared' if version.project != @project %>"><%= link_to_version version %></td>
26 <td class="name <%= 'icon icon-shared' if version.project != @project %>"><%= link_to_version version %></td>
27 <td class="date"><%= format_date(version.effective_date) %></td>
27 <td class="date"><%= format_date(version.effective_date) %></td>
28 <td class="description"><%= version.description %></td>
28 <td class="description"><%= version.description %></td>
@@ -36,7 +36,7
36 <% end %>
36 <% end %>
37 </td>
37 </td>
38 </tr>
38 </tr>
39 <% end %>
39 <% end; reset_cycle %>
40 </tbody>
40 </tbody>
41 </table>
41 </table>
42 <% else %>
42 <% else %>
@@ -49,7 +49,7
49 </thead>
49 </thead>
50 <tbody>
50 <tbody>
51 <% @trackers.each do |tracker| %>
51 <% @trackers.each do |tracker| %>
52 <tr>
52 <tr class="<%= cycle("odd", "even") %>">
53 <td class="name">
53 <td class="name">
54 <%= link_to tracker.name, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>
54 <%= link_to tracker.name, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>
55 </td>
55 </td>
@@ -9,7 +9,7
9 <% else %>
9 <% else %>
10 <table class="list">
10 <table class="list">
11 <% @queries.each do |query| %>
11 <% @queries.each do |query| %>
12 <tr>
12 <tr class="<%= cycle('odd', 'even') %>">
13 <td class="name">
13 <td class="name">
14 <%= link_to query.name, :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %>
14 <%= link_to query.name, :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %>
15 </td>
15 </td>
@@ -13,7 +13,7
13 </tr></thead>
13 </tr></thead>
14 <tbody>
14 <tbody>
15 <% for row in rows %>
15 <% for row in rows %>
16 <tr>
16 <tr class="<%= cycle("odd", "even") %>">
17 <td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td>
17 <td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td>
18 <% for status in @statuses %>
18 <% for status in @statuses %>
19 <td><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, aggregate_path(@project, field_name, row, :status_id => status.id) %></td>
19 <td><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, aggregate_path(@project, field_name, row, :status_id => status.id) %></td>
@@ -25,4 +25,5
25 <% end %>
25 <% end %>
26 </tbody>
26 </tbody>
27 </table>
27 </table>
28 <% end %>
28 <% end
29 reset_cycle %>
@@ -10,7 +10,7
10 </tr></thead>
10 </tr></thead>
11 <tbody>
11 <tbody>
12 <% for row in rows %>
12 <% for row in rows %>
13 <tr>
13 <tr class="<%= cycle("odd", "even") %>">
14 <td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td>
14 <td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td>
15 <td><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td>
15 <td><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td>
16 <td><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td>
16 <td><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td>
@@ -19,4 +19,5
19 <% end %>
19 <% end %>
20 </tbody>
20 </tbody>
21 </table>
21 </table>
22 <% end %>
22 <% end
23 reset_cycle %>
@@ -33,7 +33,7 end %>
33 <% show_diff = revisions.size > 1 %>
33 <% show_diff = revisions.size > 1 %>
34 <% line_num = 1 %>
34 <% line_num = 1 %>
35 <% revisions.each do |changeset| %>
35 <% revisions.each do |changeset| %>
36 <tr class="changeset">
36 <tr class="changeset <%= cycle 'odd', 'even' %>">
37 <% id_style = (show_revision_graph ? "padding-left:#{(graph_space + 1) * 20}px" : nil) %>
37 <% id_style = (show_revision_graph ? "padding-left:#{(graph_space + 1) * 20}px" : nil) %>
38 <%= content_tag(:td, :class => 'id', :style => id_style) do %>
38 <%= content_tag(:td, :class => 'id', :style => id_style) do %>
39 <%= link_to_revision(changeset, @repository) %>
39 <%= link_to_revision(changeset, @repository) %>
@@ -17,7 +17,7
17 <tbody>
17 <tbody>
18 <% i = 0 -%>
18 <% i = 0 -%>
19 <% @committers.each do |committer, user_id| -%>
19 <% @committers.each do |committer, user_id| -%>
20 <tr>
20 <tr class="<%= cycle 'odd', 'even' %>">
21 <td><%= committer %></td>
21 <td><%= committer %></td>
22 <td>
22 <td>
23 <%= hidden_field_tag "committers[#{i}][]", committer, :id => nil %>
23 <%= hidden_field_tag "committers[#{i}][]", committer, :id => nil %>
@@ -91,7 +91,7
91 <% end %>
91 <% end %>
92 </tr>
92 </tr>
93 <% Tracker.sorted.all.each do |tracker| %>
93 <% Tracker.sorted.all.each do |tracker| %>
94 <tr>
94 <tr class="<%= cycle("odd", "even") %>">
95 <td class="name"><%= tracker.name %></td>
95 <td class="name"><%= tracker.name %></td>
96 <% permissions.each do |permission| %>
96 <% permissions.each do |permission| %>
97 <td class="<%= "#{permission}_shown" %>"><%= check_box_tag "role[permissions_tracker_ids][#{permission}][]",
97 <td class="<%= "#{permission}_shown" %>"><%= check_box_tag "role[permissions_tracker_ids][#{permission}][]",
@@ -12,7 +12,7
12 </tr></thead>
12 </tr></thead>
13 <tbody>
13 <tbody>
14 <% for role in @roles %>
14 <% for role in @roles %>
15 <tr class="<%= role.builtin? ? "builtin" : "givable" %>">
15 <tr class="<%= cycle("odd", "even") %> <%= role.builtin? ? "builtin" : "givable" %>">
16 <td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, edit_role_path(role))) %></td>
16 <td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, edit_role_path(role))) %></td>
17 <td class="buttons">
17 <td class="buttons">
18 <%= reorder_handle(role) unless role.builtin? %>
18 <%= reorder_handle(role) unless role.builtin? %>
@@ -33,7 +33,7
33 </tr>
33 </tr>
34 <% end %>
34 <% end %>
35 <% perms_by_module[mod].each do |permission| %>
35 <% perms_by_module[mod].each do |permission| %>
36 <tr class="permission-<%= permission.name %>">
36 <tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>">
37 <td class="name">
37 <td class="name">
38 <%= link_to_function('',
38 <%= link_to_function('',
39 "toggleCheckboxesBySelector('.permission-#{permission.name} input')",
39 "toggleCheckboxesBySelector('.permission-#{permission.name} input')",
@@ -17,6 +17,7
17 <tbody>
17 <tbody>
18 <% grouped_query_results(entries, @query, @entry_count_by_group) do |entry, group_name, group_count, group_totals| -%>
18 <% grouped_query_results(entries, @query, @entry_count_by_group) do |entry, group_name, group_count, group_totals| -%>
19 <% if group_name %>
19 <% if group_name %>
20 <% reset_cycle %>
20 <tr class="group open">
21 <tr class="group open">
21 <td colspan="<%= @query.inline_columns.size + 2 %>">
22 <td colspan="<%= @query.inline_columns.size + 2 %>">
22 <span class="expander" onclick="toggleRowGroup(this);">&nbsp;</span>
23 <span class="expander" onclick="toggleRowGroup(this);">&nbsp;</span>
@@ -30,7 +31,7
30 </td>
31 </td>
31 </tr>
32 </tr>
32 <% end %>
33 <% end %>
33 <tr id="time-entry-<%= entry.id %>" class="time-entry hascontextmenu">
34 <tr id="time-entry-<%= entry.id %>" class="time-entry <%= cycle("odd", "even") %> hascontextmenu">
34 <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td>
35 <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td>
35 <%= raw @query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, entry)}</td>"}.join %>
36 <%= raw @query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, entry)}</td>"}.join %>
36 <td class="buttons">
37 <td class="buttons">
@@ -1,7 +1,7
1 <% @report.hours.collect {|h| h[criterias[level]].to_s}.uniq.each do |value| %>
1 <% @report.hours.collect {|h| h[criterias[level]].to_s}.uniq.each do |value| %>
2 <% hours_for_value = select_hours(hours, criterias[level], value) -%>
2 <% hours_for_value = select_hours(hours, criterias[level], value) -%>
3 <% next if hours_for_value.empty? -%>
3 <% next if hours_for_value.empty? -%>
4 <tr class="<%= criterias.length > level+1 ? 'subtotal' : 'last-level' %>">
4 <tr class="<%= cycle('odd', 'even') %> <%= criterias.length > level+1 ? 'subtotal' : 'last-level' %>">
5 <%= ("<td></td>" * level).html_safe %>
5 <%= ("<td></td>" * level).html_safe %>
6 <td class="name"><%= format_criteria_value(@report.available_criteria[criterias[level]], value) %></td>
6 <td class="name"><%= format_criteria_value(@report.available_criteria[criterias[level]], value) %></td>
7 <%= ("<td></td>" * (criterias.length - level - 1)).html_safe -%>
7 <%= ("<td></td>" * (criterias.length - level - 1)).html_safe -%>
@@ -25,7 +25,7
25 </td>
25 </td>
26 </tr>
26 </tr>
27 <% Tracker::CORE_FIELDS.each do |field| %>
27 <% Tracker::CORE_FIELDS.each do |field| %>
28 <tr>
28 <tr class="<%= cycle("odd", "even") %>">
29 <td class="name">
29 <td class="name">
30 <%= link_to_function('', "toggleCheckboxesBySelector('input.core-field-#{field}')",
30 <%= link_to_function('', "toggleCheckboxesBySelector('input.core-field-#{field}')",
31 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
31 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
@@ -48,7 +48,7
48 </td>
48 </td>
49 </tr>
49 </tr>
50 <% @custom_fields.each do |field| %>
50 <% @custom_fields.each do |field| %>
51 <tr>
51 <tr class="<%= cycle("odd", "even") %>">
52 <td class="name">
52 <td class="name">
53 <%= link_to_function('', "toggleCheckboxesBySelector('input.custom-field-#{field.id}')",
53 <%= link_to_function('', "toggleCheckboxesBySelector('input.custom-field-#{field.id}')",
54 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
54 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
@@ -13,7 +13,7
13 </tr></thead>
13 </tr></thead>
14 <tbody>
14 <tbody>
15 <% for tracker in @trackers %>
15 <% for tracker in @trackers %>
16 <tr>
16 <tr class="<%= cycle("odd", "even") %>">
17 <td class="name"><%= link_to tracker.name, edit_tracker_path(tracker) %></td>
17 <td class="name"><%= link_to tracker.name, edit_tracker_path(tracker) %></td>
18 <td>
18 <td>
19 <% unless tracker.workflow_rules.count > 0 %>
19 <% unless tracker.workflow_rules.count > 0 %>
@@ -37,7 +37,7
37 </tr></thead>
37 </tr></thead>
38 <tbody>
38 <tbody>
39 <% for user in @users -%>
39 <% for user in @users -%>
40 <tr class="<%= user.css_classes %>">
40 <tr class="<%= user.css_classes %> <%= cycle("odd", "even") %>">
41 <td class="username"><%= avatar(user, :size => "14") %><%= link_to user.login, edit_user_path(user) %></td>
41 <td class="username"><%= avatar(user, :size => "14") %><%= link_to user.login, edit_user_path(user) %></td>
42 <td class="firstname"><%= user.firstname %></td>
42 <td class="firstname"><%= user.firstname %></td>
43 <td class="lastname"><%= user.lastname %></td>
43 <td class="lastname"><%= user.lastname %></td>
@@ -19,7 +19,7
19 <% show_diff = @versions.size > 1 %>
19 <% show_diff = @versions.size > 1 %>
20 <% line_num = 1 %>
20 <% line_num = 1 %>
21 <% @versions.each do |ver| %>
21 <% @versions.each do |ver| %>
22 <tr class="wiki-page-version">
22 <tr class="wiki-page-version <%= cycle("odd", "even") %>">
23 <td class="id"><%= link_to ver.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td>
23 <td class="id"><%= link_to ver.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td>
24 <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>
24 <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>
25 <td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>
25 <td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>
@@ -24,7 +24,7
24 <tbody>
24 <tbody>
25 <% for old_status in [nil] + @statuses %>
25 <% for old_status in [nil] + @statuses %>
26 <% next if old_status.nil? && name != 'always' %>
26 <% next if old_status.nil? && name != 'always' %>
27 <tr>
27 <tr class="<%= cycle("odd", "even") %>">
28 <td class="name">
28 <td class="name">
29 <%= link_to_function('', "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.try(:id) || 0}')",
29 <%= link_to_function('', "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.try(:id) || 0}')",
30 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
30 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
@@ -17,7 +17,7
17 </thead>
17 </thead>
18 <tbody>
18 <tbody>
19 <% @trackers.each do |tracker| -%>
19 <% @trackers.each do |tracker| -%>
20 <tr>
20 <tr class="<%= cycle('odd', 'even') %>">
21 <td class="name"><%= tracker.name %></td>
21 <td class="name"><%= tracker.name %></td>
22 <% @roles.each do |role| -%>
22 <% @roles.each do |role| -%>
23 <% count = @workflow_counts[[tracker.id, role.id]] || 0 %>
23 <% count = @workflow_counts[[tracker.id, role.id]] || 0 %>
@@ -60,7 +60,7
60 </td>
60 </td>
61 </tr>
61 </tr>
62 <% @fields.each do |field, name| %>
62 <% @fields.each do |field, name| %>
63 <tr>
63 <tr class="<%= cycle("odd", "even") %>">
64 <td class="name">
64 <td class="name">
65 <%= name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %>
65 <%= name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %>
66 </td>
66 </td>
@@ -80,7 +80,7
80 </td>
80 </td>
81 </tr>
81 </tr>
82 <% @custom_fields.each do |field| %>
82 <% @custom_fields.each do |field| %>
83 <tr>
83 <tr class="<%= cycle("odd", "even") %>">
84 <td class="name">
84 <td class="name">
85 <%= field.name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %>
85 <%= field.name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %>
86 </td>
86 </td>
@@ -685,6 +685,10 function beforeShowDatePicker(input, inst) {
685 type: 'put',
685 type: 'put',
686 dataType: 'script',
686 dataType: 'script',
687 data: data,
687 data: data,
688 success: function(data){
689 sortable.children(":even").removeClass("even").addClass("odd");
690 sortable.children(":odd").removeClass("odd").addClass("even");
691 },
688 error: function(jqXHR, textStatus, errorThrown){
692 error: function(jqXHR, textStatus, errorThrown){
689 alert(jqXHR.status);
693 alert(jqXHR.status);
690 sortable.sortable("cancel");
694 sortable.sortable("cancel");
@@ -317,8 +317,6 table.permissions td.role {color:#999;font-size:90%;font-weight:normal !importan
317
317
318 tr.wiki-page-version td.updated_on, tr.wiki-page-version td.author {text-align:center;}
318 tr.wiki-page-version td.updated_on, tr.wiki-page-version td.author {text-align:center;}
319
319
320 div.mypage-box table.time-entries tr.time-entry { background-color: #fff; }
321 div.mypage-box table.time-entries tr.odd { background-color:#f6f7f8; }
322 tr.time-entry { text-align: center; white-space: nowrap; }
320 tr.time-entry { text-align: center; white-space: nowrap; }
323 tr.time-entry td.issue, tr.time-entry td.comments, tr.time-entry td.subject, tr.time-entry td.activity { text-align: left; white-space: normal; }
321 tr.time-entry td.issue, tr.time-entry td.comments, tr.time-entry td.subject, tr.time-entry td.activity { text-align: left; white-space: normal; }
324 td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
322 td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
@@ -332,7 +330,7 table.plugins span.url { display: block; font-size: 0.9em; }
332
330
333 table.list.enumerations {table-layout: fixed;}
331 table.list.enumerations {table-layout: fixed;}
334
332
335 tr.group td { padding: 0.8em 0 0.5em 0.3em; border-bottom: 1px solid #ccc; text-align:left; background-color: #fff;}
333 tr.group td { padding: 0.8em 0 0.5em 0.3em; border-bottom: 1px solid #ccc; text-align:left; }
336 tr.group span.name {font-weight:bold;}
334 tr.group span.name {font-weight:bold;}
337 tr.group span.count {font-weight:bold; position:relative; top:-1px; color:#fff; font-size:10px; background:#9DB9D5; padding:0px 6px 1px 6px; border-radius:3px; margin-left:4px;}
335 tr.group span.count {font-weight:bold; position:relative; top:-1px; color:#fff; font-size:10px; background:#9DB9D5; padding:0px 6px 1px 6px; border-radius:3px; margin-left:4px;}
338 tr.group span.totals {color: #aaa; font-size: 80%;}
336 tr.group span.totals {color: #aaa; font-size: 80%;}
@@ -345,8 +343,8 table.list tbody tr:hover { background-color:#ffffdd; }
345 table.list tbody tr.group:hover { background-color:inherit; }
343 table.list tbody tr.group:hover { background-color:inherit; }
346 table td {padding:2px;}
344 table td {padding:2px;}
347 table p {margin:0;}
345 table p {margin:0;}
348 table.list tbody tr:nth-child(odd), #issue-changesets div.changeset:nth-child(odd) {background-color:#f6f7f8;}
346 .odd {background-color:#f6f7f8;}
349 table.list tbody tr:nth-child(even), #issue-changesets div.changeset:nth-child(even) {background-color: #fff;}
347 .even {background-color: #fff;}
350
348
351 tr.builtin td.name {font-style:italic;}
349 tr.builtin td.name {font-style:italic;}
352
350
General Comments 0
You need to be logged in to leave comments. Login now