2012-04-09 00:28:58 +03:00
|
|
|
= render "issues/head"
|
2012-01-28 01:49:14 +02:00
|
|
|
.issues_content
|
2012-07-01 00:35:24 +03:00
|
|
|
%h3.page_title
|
2012-01-28 11:54:11 +02:00
|
|
|
Issues
|
2012-07-10 07:33:04 +03:00
|
|
|
%small (<span class=issue_counter>#{@issues.total_count}</span>)
|
2012-04-09 00:28:58 +03:00
|
|
|
.right
|
2012-04-10 20:06:17 +03:00
|
|
|
.span5
|
|
|
|
- if can? current_user, :write_issue, @project
|
2012-06-04 01:37:27 +03:00
|
|
|
= link_to new_project_issue_path(@project), :class => "right btn small", :title => "New Issue", :remote => true do
|
2012-04-10 20:06:17 +03:00
|
|
|
New Issue
|
|
|
|
= form_tag search_project_issues_path(@project), :method => :get, :remote => true, :id => "issue_search_form", :class => :right do
|
2012-04-09 00:28:58 +03:00
|
|
|
= hidden_field_tag :project_id, @project.id, { :id => 'project_id' }
|
|
|
|
= hidden_field_tag :status, params[:f]
|
2012-04-10 20:06:17 +03:00
|
|
|
= search_field_tag :issue_search, nil, { :placeholder => 'Search', :class => 'issue_search span3 right neib' }
|
2012-04-09 00:28:58 +03:00
|
|
|
|
2012-06-21 08:29:53 +03:00
|
|
|
.clearfix
|
2012-02-18 14:12:48 +02:00
|
|
|
%div#issues-table-holder.ui-box
|
|
|
|
.title
|
2012-06-27 21:20:35 +03:00
|
|
|
.left
|
|
|
|
%ul.nav.nav-pills.left
|
2012-06-27 23:13:44 +03: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-06-27 21:20:35 +03:00
|
|
|
Open
|
2012-06-27 23:13:44 +03: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-06-27 21:20:35 +03:00
|
|
|
Closed
|
2012-06-27 23:13:44 +03: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-06-27 21:20:35 +03:00
|
|
|
To Me
|
2012-06-27 23:13:44 +03: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-06-27 21:20:35 +03:00
|
|
|
All
|
2012-01-18 00:04:27 +02:00
|
|
|
|
2012-06-27 21:20:35 +03:00
|
|
|
.right
|
|
|
|
= 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")
|
|
|
|
= select_tag(:assignee_id, options_from_collection_for_select(@project.users.all, "id", "name", params[:assignee_id]), :prompt => "Assignee")
|
|
|
|
= select_tag(:milestone_id, options_from_collection_for_select(@project.milestones.order("id desc").all, "id", "title", params[:milestone_id]), :prompt => "Milestone")
|
|
|
|
= hidden_field_tag :f, params[:f]
|
|
|
|
.clearfix
|
|
|
|
|
2012-06-26 23:34:23 +03:00
|
|
|
%ul#issues-table.unstyled.issues_table
|
2012-03-10 23:41:05 +02:00
|
|
|
= render "issues"
|
2012-04-09 00:28:58 +03:00
|
|
|
|
2011-10-09 00:36:38 +03:00
|
|
|
:javascript
|
2012-06-12 11:31:38 +03:00
|
|
|
$(function(){
|
2012-06-27 23:13:44 +03:00
|
|
|
issuesPage();
|
2012-07-10 07:33:04 +03:00
|
|
|
})
|