_head.html.haml 1.29 KB
Newer Older
randx's avatar
randx committed
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 20 21 22 23
      .pull-right
        - if can? current_user, :write_issue, @project
          = link_to new_project_issue_path(@project, issue: { assignee_id: params[:assignee_id], milestone_id: params[:milestone_id]}), class: "btn btn-new pull-right", title: "New Issue", id: "new_issue_link" do
            %i.icon-plus
            New Issue
24
        = form_tag project_issues_path(@project), method: :get, id: "issue_search_form", class: 'pull-right issue-search-form'  do
25
          = search_field_tag :issue_search, nil, { placeholder: 'Filter by title or description', class: 'input-xpadding issue_search input-xlarge append-right-10 search-text-input' }