2013-04-06 15:32:23 -04:00
|
|
|
.ui-box
|
|
|
|
.title
|
|
|
|
= check_box_tag "check_all_issues", nil, false, class: "check_all_issues left"
|
|
|
|
.clearfix
|
|
|
|
.issues_bulk_update.hide
|
|
|
|
= form_tag bulk_update_project_issues_path(@project), method: :post do
|
2013-08-10 12:30:27 -04:00
|
|
|
%span Update selected issues with
|
|
|
|
= select_tag('update[status]', options_for_select(['open', 'closed']), prompt: "Status")
|
|
|
|
= select_tag('update[assignee_id]', options_from_collection_for_select(@project.team.members, "id", "name", params[:assignee_id]), prompt: "Assignee")
|
2013-08-10 13:25:53 -04:00
|
|
|
= select_tag('update[milestone_id]', options_from_collection_for_select(project_active_milestones, "id", "title", params[:milestone_id]), prompt: "Milestone")
|
2013-08-10 12:30:27 -04:00
|
|
|
= hidden_field_tag 'update[issues_ids]', []
|
|
|
|
= hidden_field_tag :status, params[:status]
|
2013-04-06 15:32:23 -04:00
|
|
|
= button_tag "Save", class: "btn update_selected_issues btn-small btn-save"
|
2013-05-08 06:43:21 -04:00
|
|
|
.issues-filters
|
|
|
|
%span Filter by
|
|
|
|
.dropdown.inline.prepend-left-10
|
|
|
|
%a.dropdown-toggle.btn.btn-small{href: '#', "data-toggle" => "dropdown"}
|
|
|
|
%i.icon-tags
|
|
|
|
%span.light labels:
|
|
|
|
- if params[:label_name].present?
|
|
|
|
%strong= params[:label_name]
|
|
|
|
- else
|
|
|
|
Any
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li
|
2013-08-10 13:25:53 -04:00
|
|
|
= link_to project_filter_path(label_name: nil) do
|
2013-05-08 03:00:19 -04:00
|
|
|
Any
|
2013-05-08 06:43:21 -04:00
|
|
|
- issue_label_names.each do |label_name|
|
|
|
|
%li
|
2013-08-10 13:25:53 -04:00
|
|
|
= link_to project_filter_path(label_name: label_name) do
|
2013-05-08 06:43:21 -04:00
|
|
|
%span{class: "label #{label_css_class(label_name)}"}
|
|
|
|
%i.icon-tag
|
|
|
|
= label_name
|
|
|
|
.dropdown.inline.prepend-left-10
|
|
|
|
%a.dropdown-toggle.btn.btn-small{href: '#', "data-toggle" => "dropdown"}
|
|
|
|
%i.icon-user
|
|
|
|
%span.light assignee:
|
|
|
|
- if @assignee.present?
|
|
|
|
%strong= @assignee.name
|
|
|
|
- elsif params[:assignee_id] == "0"
|
|
|
|
Unassigned
|
|
|
|
- else
|
|
|
|
Any
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li
|
2013-08-10 13:25:53 -04:00
|
|
|
= link_to project_filter_path(assignee_id: nil) do
|
2013-05-08 03:00:19 -04:00
|
|
|
Any
|
2013-08-10 13:25:53 -04:00
|
|
|
= link_to project_filter_path(assignee_id: 0) do
|
2013-05-08 06:43:21 -04:00
|
|
|
Unassigned
|
2013-06-17 07:55:41 -04:00
|
|
|
- @project.team.members.sort_by(&:name).each do |user|
|
2013-05-08 06:43:21 -04:00
|
|
|
%li
|
2013-08-10 13:25:53 -04:00
|
|
|
= link_to project_filter_path(assignee_id: user.id) do
|
2013-10-06 14:13:56 -04:00
|
|
|
= image_tag avatar_icon(user.email), class: "avatar s16", alt: ''
|
2013-05-08 06:43:21 -04:00
|
|
|
= user.name
|
2013-05-08 03:00:19 -04:00
|
|
|
|
2013-05-08 06:43:21 -04:00
|
|
|
.dropdown.inline.prepend-left-10
|
|
|
|
%a.dropdown-toggle.btn.btn-small{href: '#', "data-toggle" => "dropdown"}
|
|
|
|
%i.icon-time
|
|
|
|
%span.light milestone:
|
|
|
|
- if @milestone.present?
|
|
|
|
%strong= @milestone.title
|
|
|
|
- elsif params[:milestone_id] == "0"
|
2013-06-22 11:19:00 -04:00
|
|
|
None (backlog)
|
2013-05-08 06:43:21 -04:00
|
|
|
- else
|
|
|
|
Any
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li
|
2013-08-10 13:25:53 -04:00
|
|
|
= link_to project_filter_path(milestone_id: nil) do
|
2013-05-08 03:00:19 -04:00
|
|
|
Any
|
2013-08-10 13:25:53 -04:00
|
|
|
= link_to project_filter_path(milestone_id: 0) do
|
2013-06-22 11:19:00 -04:00
|
|
|
None (backlog)
|
2013-08-10 13:25:53 -04:00
|
|
|
- project_active_milestones.each do |milestone|
|
2013-05-08 06:43:21 -04:00
|
|
|
%li
|
2013-08-10 13:25:53 -04:00
|
|
|
= link_to project_filter_path(milestone_id: milestone.id) do
|
2013-05-08 06:43:21 -04:00
|
|
|
%strong= milestone.title
|
|
|
|
%small.light= milestone.expires_at
|
2013-05-08 03:00:19 -04:00
|
|
|
|
2013-11-20 17:59:50 -05:00
|
|
|
.dropdown.inline.prepend-left-10
|
|
|
|
%a.dropdown-toggle.btn.btn-small{href: '#', "data-toggle" => "dropdown"}
|
|
|
|
%span.light sort:
|
2013-11-25 10:46:16 -05:00
|
|
|
- if @sort.present?
|
|
|
|
= @sort
|
|
|
|
- else
|
|
|
|
Newest
|
2013-11-20 17:59:50 -05:00
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li
|
|
|
|
= link_to project_filter_path(sort: 'newest') do
|
|
|
|
Newest
|
|
|
|
= link_to project_filter_path(sort: 'oldest') do
|
|
|
|
Oldest
|
|
|
|
= link_to project_filter_path(sort: 'recently_updated') do
|
|
|
|
Recently updated
|
|
|
|
= link_to project_filter_path(sort: 'last_updated') do
|
|
|
|
Last updated
|
|
|
|
= link_to project_filter_path(sort: 'milestone_due_soon') do
|
|
|
|
Milestone due soon
|
|
|
|
= link_to project_filter_path(sort: 'milestone_due_later') do
|
|
|
|
Milestone due later
|
|
|
|
|
2013-04-06 15:32:23 -04:00
|
|
|
|
|
|
|
%ul.well-list.issues-list
|
|
|
|
= render @issues
|
|
|
|
- if @issues.blank?
|
|
|
|
%li
|
2013-08-15 13:31:16 -04:00
|
|
|
%h4.nothing_here_message No issues to show
|
2012-03-21 18:09:56 -04:00
|
|
|
|
2012-03-21 18:09:57 -04:00
|
|
|
- if @issues.present?
|
2013-04-06 15:32:23 -04:00
|
|
|
.pull-right
|
|
|
|
%span.issue_counter #{@issues.total_count}
|
|
|
|
issues for this filter
|
2012-07-27 20:35:24 -04:00
|
|
|
|
2013-04-06 15:32:23 -04:00
|
|
|
= paginate @issues, remote: true, theme: "gitlab"
|