2016-06-10 09:17:28 -04:00
|
|
|
- @no_container = true
|
2016-09-06 08:49:49 -04:00
|
|
|
- @bulk_edit = can?(current_user, :admin_issue, @project)
|
|
|
|
|
2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Issues"
|
2016-06-30 05:08:14 -04:00
|
|
|
- new_issue_email = @project.new_issue_address(current_user)
|
2016-09-29 11:54:45 -04:00
|
|
|
= content_for :sub_nav do
|
|
|
|
= render "projects/issues/head"
|
2015-09-17 06:16:24 -04:00
|
|
|
|
2016-11-04 17:27:11 -04:00
|
|
|
- content_for :page_specific_javascripts do
|
2017-01-13 10:30:40 -05:00
|
|
|
= page_specific_javascript_bundle_tag('filtered_search')
|
2016-11-04 17:27:11 -04:00
|
|
|
|
2015-04-21 10:31:40 -04:00
|
|
|
= content_for :meta_tags do
|
|
|
|
- if current_user
|
2016-11-03 06:29:37 -04:00
|
|
|
= auto_discovery_link_tag(:atom, url_for(params.merge(format: :atom, private_token: current_user.private_token)), title: "#{@project.name} issues")
|
2015-04-21 10:31:40 -04:00
|
|
|
|
2016-11-05 13:28:29 -04:00
|
|
|
- if project_issues(@project).exists?
|
|
|
|
%div{ class: (container_class) }
|
2016-06-24 11:37:49 -04:00
|
|
|
.top-area
|
|
|
|
= render 'shared/issuable/nav', type: :issues
|
|
|
|
.nav-controls
|
|
|
|
- if current_user
|
2017-01-26 09:14:18 -05:00
|
|
|
= link_to url_for(params.merge(format: :atom, private_token: current_user.private_token)), class: 'btn append-right-10 has-tooltip', title: 'Subscribe' do
|
2016-06-24 11:37:49 -04:00
|
|
|
= icon('rss')
|
|
|
|
- if can? current_user, :create_issue, @project
|
2016-07-23 19:28:12 -04:00
|
|
|
= link_to new_namespace_project_issue_path(@project.namespace,
|
|
|
|
@project,
|
|
|
|
issue: { assignee_id: issues_finder.assignee.try(:id),
|
|
|
|
milestone_id: issues_finder.milestones.first.try(:id) }),
|
|
|
|
class: "btn btn-new",
|
|
|
|
title: "New Issue",
|
|
|
|
id: "new_issue_link" do
|
2016-06-24 11:37:49 -04:00
|
|
|
New Issue
|
2016-12-19 01:32:42 -05:00
|
|
|
= render 'shared/issuable/search_bar', type: :issues
|
2016-06-24 11:37:49 -04:00
|
|
|
|
2016-09-07 10:45:31 -04:00
|
|
|
.issues-holder
|
2016-07-27 06:07:11 -04:00
|
|
|
= render 'issues'
|
2016-07-26 04:19:37 -04:00
|
|
|
- if new_issue_email
|
2016-07-27 06:07:11 -04:00
|
|
|
= render 'issue_by_email', email: new_issue_email
|
2016-11-05 13:28:29 -04:00
|
|
|
- else
|
|
|
|
= render 'shared/empty_states/issues', button_path: new_namespace_project_issue_path(@project.namespace, @project)
|