debian-mirror-gitlab/app/views/projects/issues/index.html.haml

31 lines
1.2 KiB
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- @can_bulk_update = can?(current_user, :admin_issue, @project)
2016-09-29 09:46:39 +05:30
2020-07-28 23:09:34 +05:30
- page_title _("Issues")
2018-03-17 18:26:18 +05:30
- new_issue_email = @project.new_issuable_address(current_user, 'issue')
2021-01-03 14:25:43 +05:30
- add_page_specific_style 'page_bundles/issues_list'
2015-09-25 12:07:36 +05:30
2015-09-11 14:41:01 +05:30
= content_for :meta_tags do
2018-06-27 16:04:02 +05:30
= auto_discovery_link_tag(:atom, safe_params.merge(rss_url_options).to_h, title: "#{@project.name} issues")
2015-09-11 14:41:01 +05:30
2020-06-23 00:09:42 +05:30
.js-projects-issues-root{ data: { can_edit: can?(current_user, :admin_project, @project).to_s,
is_jira_configured: @project.jira_service.present?.to_s,
issues_path: project_issues_path(@project),
project_path: @project.full_path } }
2020-05-24 23:13:21 +05:30
2017-08-17 22:00:37 +05:30
- if project_issues(@project).exists?
2019-12-04 20:38:33 +05:30
.top-area
= render 'shared/issuable/nav', type: :issues
= render "projects/issues/nav_btns"
= render 'shared/issuable/search_bar', type: :issues
2016-08-24 12:49:21 +05:30
2019-12-04 20:38:33 +05:30
- if @can_bulk_update
= render 'shared/issuable/bulk_update_sidebar', type: :issues
2017-09-10 17:25:29 +05:30
2019-12-04 20:38:33 +05:30
.issues-holder
= render 'issues'
- if new_issue_email
= render 'projects/issuable_by_email', email: new_issue_email, issuable_type: 'issue'
2017-08-17 22:00:37 +05:30
- else
2019-12-21 20:55:43 +05:30
- new_project_issue_button_path = @project.archived? ? false : new_project_issue_path(@project)
= render 'shared/empty_states/issues', new_project_issue_button_path: new_project_issue_button_path, show_import_button: true