gitlab-org--gitlab-foss/app/views/issues/index.html.haml

51 lines
2.7 KiB
Text
Raw Normal View History

2012-04-08 17:28:58 -04:00
= render "issues/head"
2012-01-27 18:49:14 -05:00
.issues_content
%h3.page_title
2012-01-28 04:54:11 -05:00
Issues
%span (<span class=issue_counter>#{@issues.total_count}</span>)
2013-01-30 09:40:43 -05:00
.pull-right
2012-04-10 13:06:17 -04:00
.span5
- if can? current_user, :write_issue, @project
2013-01-30 09:40:43 -05:00
= link_to new_project_issue_path(@project, issue: { assignee_id: params[:assignee_id], milestone_id: params[:milestone_id]}), class: "btn btn-primary pull-right", title: "New Issue", 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
2013-01-30 09:40:43 -05:00
= form_tag search_project_issues_path(@project), method: :get, remote: true, id: "issue_search_form", class: 'pull-right' do
= hidden_field_tag :project_id, @project.id, { id: 'project_id' }
= hidden_field_tag :status, params[:status]
2013-01-30 09:40:43 -05:00
= search_field_tag :issue_search, nil, { placeholder: 'Search', class: 'issue_search span3 pull-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
.row
.span3
= render 'filter', entity: 'issue'
.span9
%div#issues-table-holder.ui-box
.title
= check_box_tag "check_all_issues", nil, false, class: "check_all_issues left"
2012-07-27 20:35:24 -04:00
.clearfix
.issues_bulk_update.hide
= form_tag bulk_update_project_issues_path(@project), method: :post do
%span.update_issues_text Update selected issues with &nbsp;
.left
= 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(issues_active_milestones, "id", "title", params[:milestone_id]), prompt: "Milestone")
= hidden_field_tag 'update[issues_ids]', []
= hidden_field_tag :status, params[:status]
2013-01-29 15:18:19 -05:00
= button_tag "Save", class: "btn update_selected_issues btn-small btn-save"
.issues_filters
= form_tag project_issues_path(@project), method: :get do
= select_tag(:label_name, options_for_select(issue_tags, params[:label_name]), prompt: "Labels")
= 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] + issues_active_milestones, "id", "title", params[:milestone_id]), prompt: "Milestone")
= hidden_field_tag :status, params[:status]
2012-08-17 02:26:59 -04:00
%ul#issues-table.well-list.issues_table
= render "issues"
2012-04-08 17:28:58 -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
})