30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
<% form_tag({}) do -%>
|
|
<table class="list issues">
|
|
<thead><tr>
|
|
<th><%= link_to image_tag('edit.png'), {}, :onclick => 'toggleIssuesSelection(this.up("form")); return false;' %>
|
|
</th>
|
|
<%= sort_header_tag("#{Issue.table_name}.id", :caption => '#', :default_order => 'desc') %>
|
|
<% query.columns.each do |column| %>
|
|
<%= column_header(column) %>
|
|
<% end %>
|
|
</tr></thead>
|
|
<tbody>
|
|
<% issues.each do |issue| -%>
|
|
<tr id="issue-<%= issue.id %>" class="issue hascontextmenu <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
|
|
<td class="checkbox"><%= check_box_tag("ids[]", issue.id, false) %></td>
|
|
<td><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
|
|
<% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.name %><% end %>
|
|
</tr>
|
|
<% end -%>
|
|
</tbody>
|
|
</table>
|
|
<% end -%>
|
|
|
|
<% content_for :header_tags do -%>
|
|
<%= javascript_include_tag 'context_menu' %>
|
|
<%= stylesheet_link_tag 'context_menu' %>
|
|
<% end -%>
|
|
|
|
<div id="context-menu" style="display: none;"></div>
|
|
<%= javascript_tag "new ContextMenu('#{url_for(:controller => 'issues', :action => 'context_menu')}')" %>
|