_head.html.haml 1.32 KB
Newer Older
1
%ul.nav.nav-tabs
2
  = nav_link(controller: :issues) do
3 4 5 6
    = link_to project_issues_path(@project), class: "tab" do
      Browse Issues
      - if current_controller?(:issues)
        %span.badge.issue_counter #{@issues.total_count}
7 8 9 10
  = nav_link(controller: :milestones) do
    = link_to 'Milestones', project_milestones_path(@project), class: "tab"
  = nav_link(controller: :labels) do
    = link_to 'Labels', project_labels_path(@project), class: "tab"
11 12 13 14 15 16 17

  - if current_controller?(:issues)
    - if current_user
      %li
        = link_to project_issues_path(@project, :atom, { private_token: current_user.private_token }) do
          %i.icon-rss

18
    %li.pull-right
19
      .pull-right
20
        = form_tag project_issues_path(@project), method: :get, id: "issue_search_form", class: 'pull-left issue-search-form'  do
21
          .append-right-10.hidden-xs.hidden-sm
22
            = search_field_tag :issue_search, nil, { placeholder: 'Filter by title or description', class: 'form-control issue_search search-text-input input-mn-300' }
23
        - if can? current_user, :write_issue, @project
24
          = link_to new_project_issue_path(@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
25 26
            %i.icon-plus
            New Issue