BigW Consortium Gitlab

index.html.haml 1.43 KB
Newer Older
1
.append-bottom-10
2 3
  .pull-right
    .pull-left
4 5
      - if current_user
        .hidden-xs.pull-left
6
          = link_to namespace_project_issues_path(@project.namespace, @project, :atom, { private_token: current_user.private_token }), class: 'btn append-right-10' do
7 8
            %i.fa.fa-rss

9
      = render 'shared/issuable_search_form', path: namespace_project_issues_path(@project.namespace, @project)
10

11
    - if can? current_user, :write_issue, @project
12
      = link_to new_namespace_project_issue_path(@project.namespace, @project, issue: { assignee_id: params[:assignee_id], milestone_id: params[:milestone_id]}), class: "btn btn-new pull-left", title: "New Issue", id: "new_issue_link" do
13 14 15
        %i.fa.fa-plus
        New Issue

16 17 18 19
  = render 'shared/issuable_filter'

  .clearfix
    .issues_bulk_update.hide
20
      = form_tag bulk_update_namespace_project_issues_path(@project.namespace, @project), method: :post  do
21
        = select_tag('update[state_event]', options_for_select([['Open', 'reopen'], ['Closed', 'close']]), prompt: "Status")
22 23 24
        = project_users_select_tag('update[assignee_id]', placeholder: 'Assignee')
        = select_tag('update[milestone_id]', bulk_update_milestone_options, prompt: "Milestone")
        = hidden_field_tag 'update[issues_ids]', []
25
        = hidden_field_tag :state_event, params[:state_event]
26
        = button_tag "Update issues", class: "btn update_selected_issues btn-save"
27

28 29
.issues-holder
  = render "issues"