annotate .svn/pristine/3c/3c57aa09eea8e28ae469dce0482885ac576762ef.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 <%= form_tag({}) do -%>
Chris@1464 2 <%= hidden_field_tag 'back_url', url_for(params), :id => nil %>
Chris@1464 3 <div class="autoscroll">
Chris@1464 4 <table class="list issues">
Chris@1464 5 <thead>
Chris@1464 6 <tr>
Chris@1464 7 <th class="checkbox hide-when-print">
Chris@1464 8 <%= link_to image_tag('toggle_check.png'), {},
Chris@1464 9 :onclick => 'toggleIssuesSelection(this); return false;',
Chris@1464 10 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
Chris@1464 11 </th>
Chris@1464 12 <% query.inline_columns.each do |column| %>
Chris@1464 13 <%= column_header(column) %>
Chris@1464 14 <% end %>
Chris@1464 15 </tr>
Chris@1464 16 </thead>
Chris@1464 17 <% previous_group = false %>
Chris@1464 18 <tbody>
Chris@1464 19 <% issue_list(issues) do |issue, level| -%>
Chris@1464 20 <% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %>
Chris@1464 21 <% reset_cycle %>
Chris@1464 22 <tr class="group open">
Chris@1464 23 <td colspan="<%= query.inline_columns.size + 2 %>">
Chris@1464 24 <span class="expander" onclick="toggleRowGroup(this);">&nbsp;</span>
Chris@1464 25 <%= group.blank? ? l(:label_none) : column_content(@query.group_by_column, issue) %> <span class="count"><%= @issue_count_by_group[group] %></span>
Chris@1464 26 <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}",
Chris@1464 27 "toggleAllRowGroups(this)", :class => 'toggle-all') %>
Chris@1464 28 </td>
Chris@1464 29 </tr>
Chris@1464 30 <% previous_group = group %>
Chris@1464 31 <% end %>
Chris@1464 32 <tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
Chris@1464 33 <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
Chris@1464 34 <%= raw query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, issue)}</td>"}.join %>
Chris@1464 35 </tr>
Chris@1464 36 <% @query.block_columns.each do |column|
Chris@1464 37 if (text = column_content(column, issue)) && text.present? -%>
Chris@1464 38 <tr class="<%= current_cycle %>">
Chris@1464 39 <td colspan="<%= @query.inline_columns.size + 1 %>" class="<%= column.css_classes %>"><%= text %></td>
Chris@1464 40 </tr>
Chris@1464 41 <% end -%>
Chris@1464 42 <% end -%>
Chris@1464 43 <% end -%>
Chris@1464 44 </tbody>
Chris@1464 45 </table>
Chris@1464 46 </div>
Chris@1464 47 <% end -%>