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
|
|
|
|
%span.update_issues_text Update selected issues with
|
|
|
|
.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]
|
|
|
|
= button_tag "Save", class: "btn update_selected_issues btn-small btn-save"
|
|
|
|
.issues_filters
|
|
|
|
= form_tag project_issues_path(@project), method: :get, remote: true do
|
2013-05-08 03:00:19 -04:00
|
|
|
%span Filter by
|
|
|
|
.dropdown.inline.prepend-left-10
|
|
|
|
%a.dropdown-toggle.btn.btn-small{href: '#', "data-toggle" => "dropdown"}
|
|
|
|
%i.icon-tags
|
|
|
|
%span.light labels:
|
2013-05-08 03:06:48 -04:00
|
|
|
- if params[:label_name].present?
|
2013-05-08 03:00:19 -04:00
|
|
|
%strong= params[:label_name]
|
|
|
|
- else
|
|
|
|
Any
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
- issue_label_names.each do |label_name|
|
|
|
|
%li
|
2013-05-08 03:06:48 -04:00
|
|
|
= link_to project_issues_with_filter_path(@project, label_name: label_name) do
|
2013-05-08 03:00:19 -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 params[:assignee_id].present?
|
|
|
|
%strong= User.find(params[:assignee_id]).name
|
|
|
|
- else
|
|
|
|
Any
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
- @project.users.sort_by(&:name).each do |user|
|
|
|
|
%li
|
2013-05-08 03:06:48 -04:00
|
|
|
= link_to project_issues_with_filter_path(@project, assignee_id: user.id) do
|
2013-05-08 03:00:19 -04:00
|
|
|
= image_tag gravatar_icon(user.email), class: "avatar s16"
|
|
|
|
= user.name
|
|
|
|
|
|
|
|
.dropdown.inline.prepend-left-10
|
|
|
|
%a.dropdown-toggle.btn.btn-small{href: '#', "data-toggle" => "dropdown"}
|
|
|
|
%i.icon-time
|
|
|
|
%span.light milestone:
|
|
|
|
- if params[:milestone_id].present?
|
|
|
|
%strong= Milestone.find(params[:milestone_id]).title
|
|
|
|
- else
|
|
|
|
Any
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
- issues_active_milestones.each do |milestone|
|
|
|
|
%li
|
2013-05-08 03:06:48 -04:00
|
|
|
= link_to project_issues_with_filter_path(@project, milestone_id: milestone.id) do
|
2013-05-08 03:00:19 -04:00
|
|
|
%strong= milestone.title
|
|
|
|
%small.light= milestone.expires_at
|
|
|
|
|
|
|
|
-#= 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")
|
2013-04-06 15:32:23 -04:00
|
|
|
= hidden_field_tag :status, params[:status]
|
2013-04-07 06:19:36 -04:00
|
|
|
= hidden_field_tag :issue_search, params[:status], id: 'filter_issue_search'
|
2013-04-06 15:32:23 -04:00
|
|
|
|
|
|
|
%ul.well-list.issues-list
|
|
|
|
= render @issues
|
|
|
|
- if @issues.blank?
|
|
|
|
%li
|
|
|
|
%h4.nothing_here_message Nothing to show here
|
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"
|