index.html.haml 1.2 KB
Newer Older
1
- @no_container = true
2
- page_title "Issues"
3
= render "projects/issues/head"
4

5 6 7 8
= content_for :meta_tags do
  - if current_user
    = auto_discovery_link_tag(:atom, namespace_project_issues_url(@project.namespace, @project, :atom, private_token: current_user.private_token), title: "#{@project.name} issues")

Valery Sizov's avatar
Valery Sizov committed
9
%div{ class: container_class }
10 11 12 13 14 15 16 17 18 19 20 21
  .top-area
    = render 'shared/issuable/nav', type: :issues
    .nav-controls
      - if current_user
        = link_to namespace_project_issues_path(@project.namespace, @project, :atom, { private_token: current_user.private_token }), class: 'btn append-right-10' do
          = icon('rss')
          %span.icon-label
            Subscribe
      = render 'shared/issuable/search_form', path: namespace_project_issues_path(@project.namespace, @project)
      - if can? current_user, :create_issue, @project
        = link_to new_namespace_project_issue_path(@project.namespace, @project, issue: { assignee_id: @issuable_finder.assignee.try(:id), milestone_id: @issuable_finder.milestones.try(:first).try(:id) }), class: "btn btn-new", title: "New Issue", id: "new_issue_link" do
          New Issue
22

23
  = render 'shared/issuable/filter', type: :issues
24

25 26
  .issues-holder
    = render "issues"