2012-04-08 17:28:58 -04:00
|
|
|
= render "issues/head"
|
2012-01-27 18:49:14 -05:00
|
|
|
.issues_content
|
2012-06-30 17:35:24 -04:00
|
|
|
%h3.page_title
|
2012-01-28 04:54:11 -05:00
|
|
|
Issues
|
2012-07-10 00:33:04 -04:00
|
|
|
%small (<span class=issue_counter>#{@issues.total_count}</span>)
|
2012-04-08 17:28:58 -04:00
|
|
|
.right
|
2012-04-10 13:06:17 -04:00
|
|
|
.span5
|
|
|
|
- if can? current_user, :write_issue, @project
|
2012-09-07 09:35:59 -04:00
|
|
|
= link_to new_project_issue_path(@project), class: "right btn", title: "New Issue", remote: true, id: "new_issue_link" do
|
2012-08-17 02:26:59 -04:00
|
|
|
%i.icon-plus
|
2012-04-10 13:06:17 -04:00
|
|
|
New Issue
|
2012-08-10 18:07:50 -04:00
|
|
|
= form_tag search_project_issues_path(@project), method: :get, remote: true, id: "issue_search_form", class: :right do
|
|
|
|
= hidden_field_tag :project_id, @project.id, { id: 'project_id' }
|
2012-04-08 17:28:58 -04:00
|
|
|
= hidden_field_tag :status, params[:f]
|
2012-09-19 02:14:07 -04:00
|
|
|
= search_field_tag :issue_search, nil, { placeholder: 'Search', class: 'issue_search span3 right neib search-text-input' }
|
2012-04-08 17:28:58 -04:00
|
|
|
|
2012-06-21 01:29:53 -04:00
|
|
|
.clearfix
|
2012-07-27 20:35:24 -04:00
|
|
|
|
2012-02-18 07:12:48 -05:00
|
|
|
%div#issues-table-holder.ui-box
|
|
|
|
.title
|
2012-08-10 18:07:50 -04:00
|
|
|
= check_box_tag "check_all_issues", nil, false, class: "check_all_issues left"
|
2012-07-27 20:35:24 -04:00
|
|
|
|
2012-01-17 17:04:27 -05:00
|
|
|
|
2012-07-27 20:35:24 -04:00
|
|
|
.issues_bulk_update.hide
|
2012-08-17 02:26:59 -04:00
|
|
|
= form_tag bulk_update_project_issues_path(@project), method: :post do
|
2012-07-27 22:43:34 -04:00
|
|
|
%span.update_issues_text Update selected issues with
|
|
|
|
.left
|
2012-08-10 18:07:50 -04:00
|
|
|
= select_tag('update[status]', options_for_select(['open', 'closed']), prompt: "Status")
|
|
|
|
= select_tag('update[assignee_id]', options_from_collection_for_select(@project.users.all, "id", "name", params[:assignee_id]), prompt: "Assignee")
|
|
|
|
= select_tag('update[milestone_id]', options_from_collection_for_select(@project.milestones.order("id desc").all, "id", "title", params[:milestone_id]), prompt: "Milestone")
|
2012-07-27 22:43:34 -04:00
|
|
|
= hidden_field_tag 'update[issues_ids]', []
|
|
|
|
= hidden_field_tag :f, params[:f]
|
2012-08-10 18:07:50 -04:00
|
|
|
= button_tag "Save", class: "btn update_selected_issues"
|
2012-07-27 20:35:24 -04:00
|
|
|
.issues_filters
|
|
|
|
.left
|
|
|
|
%ul.nav.nav-pills.left
|
2012-08-10 18:07:50 -04:00
|
|
|
%li{class: ("active" if (params[:f] == issues_filter[:open] || !params[:f]))}
|
|
|
|
= link_to project_issues_path(@project, f: issues_filter[:open], milestone_id: params[:milestone_id]) do
|
2012-07-27 20:35:24 -04:00
|
|
|
Open
|
2012-08-10 18:07:50 -04:00
|
|
|
%li{class: ("active" if params[:f] == issues_filter[:closed])}
|
|
|
|
= link_to project_issues_path(@project, f: issues_filter[:closed], milestone_id: params[:milestone_id]) do
|
2012-07-27 20:35:24 -04:00
|
|
|
Closed
|
2012-08-10 18:07:50 -04:00
|
|
|
%li{class: ("active" if params[:f] == issues_filter[:to_me])}
|
|
|
|
= link_to project_issues_path(@project, f: issues_filter[:to_me], milestone_id: params[:milestone_id]) do
|
2012-07-27 20:35:24 -04:00
|
|
|
To Me
|
2012-08-10 18:07:50 -04:00
|
|
|
%li{class: ("active" if params[:f] == issues_filter[:all])}
|
|
|
|
= link_to project_issues_path(@project, f: issues_filter[:all], milestone_id: params[:milestone_id]) do
|
2012-07-27 20:35:24 -04:00
|
|
|
All
|
|
|
|
|
|
|
|
.right
|
2012-08-10 18:07:50 -04:00
|
|
|
= form_tag project_issues_path(@project), method: :get, class: :right do
|
|
|
|
= select_tag(:label_name, options_for_select(issue_tags, params[:label_name]), prompt: "Labels")
|
2012-08-16 18:13:22 -04:00
|
|
|
= select_tag(:assignee_id, options_from_collection_for_select([unassigned_filter] + @project.users.all, "id", "name", params[:assignee_id]), prompt: "Assignee")
|
|
|
|
= select_tag(:milestone_id, options_from_collection_for_select([unassigned_filter] + @project.milestones.order("id desc").all, "id", "title", params[:milestone_id]), prompt: "Milestone")
|
2012-07-27 20:35:24 -04:00
|
|
|
= hidden_field_tag :f, params[:f]
|
|
|
|
.clearfix
|
2012-08-17 02:26:59 -04:00
|
|
|
|
2012-06-26 16:34:23 -04:00
|
|
|
%ul#issues-table.unstyled.issues_table
|
2012-03-10 16:41:05 -05:00
|
|
|
= render "issues"
|
2012-04-08 17:28:58 -04:00
|
|
|
|
2012-10-27 11:35:15 -04:00
|
|
|
#new_issue_dialog
|
|
|
|
#edit_issue_dialog
|
2012-07-27 20:35:24 -04:00
|
|
|
|
2011-10-08 17:36:38 -04:00
|
|
|
:javascript
|
2012-06-12 04:31:38 -04:00
|
|
|
$(function(){
|
2012-06-27 16:13:44 -04:00
|
|
|
issuesPage();
|
2012-07-27 20:35:24 -04:00
|
|
|
})
|