summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/_issues.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-23 19:47:22 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-23 19:47:22 +0300
commit2ed7cbfba4ff3c6a4cf3e72515a0375544998de0 (patch)
treeae6d7530745c80633cd993c99f7820e1452f3e1b /app/views/projects/issues/_issues.html.haml
parent95791316f4037273af7b747ce1851d5f4e46933f (diff)
downloadgitlab-ce-2ed7cbfba4ff3c6a4cf3e72515a0375544998de0.tar.gz
Move projects controllers/views in Projects module
Diffstat (limited to 'app/views/projects/issues/_issues.html.haml')
-rw-r--r--app/views/projects/issues/_issues.html.haml94
1 files changed, 94 insertions, 0 deletions
diff --git a/app/views/projects/issues/_issues.html.haml b/app/views/projects/issues/_issues.html.haml
new file mode 100644
index 00000000000..68598684f90
--- /dev/null
+++ b/app/views/projects/issues/_issues.html.haml
@@ -0,0 +1,94 @@
+.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 &nbsp;
+ .left
+ = 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")
+ = 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
+ %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
+ = link_to project_issues_with_filter_path(@project, label_name: nil) do
+ Any
+ - issue_label_names.each do |label_name|
+ %li
+ = link_to project_issues_with_filter_path(@project, label_name: label_name) do
+ %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
+ = link_to project_issues_with_filter_path(@project, assignee_id: nil) do
+ Any
+ = link_to project_issues_with_filter_path(@project, assignee_id: 0) do
+ Unassigned
+ - @project.team.members.sort_by(&:name).each do |user|
+ %li
+ = link_to project_issues_with_filter_path(@project, assignee_id: user.id) do
+ = 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 @milestone.present?
+ %strong= @milestone.title
+ - elsif params[:milestone_id] == "0"
+ Unspecified
+ - else
+ Any
+ %b.caret
+ %ul.dropdown-menu
+ %li
+ = link_to project_issues_with_filter_path(@project, milestone_id: nil) do
+ Any
+ = link_to project_issues_with_filter_path(@project, milestone_id: 0) do
+ Unspecified
+ - issues_active_milestones.each do |milestone|
+ %li
+ = link_to project_issues_with_filter_path(@project, milestone_id: milestone.id) do
+ %strong= milestone.title
+ %small.light= milestone.expires_at
+
+
+ %ul.well-list.issues-list
+ = render @issues
+ - if @issues.blank?
+ %li
+ %h4.nothing_here_message Nothing to show here
+
+- if @issues.present?
+ .pull-right
+ %span.issue_counter #{@issues.total_count}
+ issues for this filter
+
+ = paginate @issues, remote: true, theme: "gitlab"