debian-mirror-gitlab/app/views/groups/issues.html.haml

34 lines
1.5 KiB
Text
Raw Normal View History

2021-06-08 01:23:25 +05:30
- @can_bulk_update = can?(current_user, :admin_issue, @group) && @group.licensed_feature_available?(:group_bulk_edit)
2019-09-30 21:07:59 +05:30
2020-07-28 23:09:34 +05:30
- page_title _("Issues")
2021-01-03 14:25:43 +05:30
- add_page_specific_style 'page_bundles/issues_list'
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: "#{@group.name} issues")
2015-09-11 14:41:01 +05:30
2021-04-29 21:17:54 +05:30
.top-area
= render 'shared/issuable/nav', type: :issues
.nav-controls
= render 'shared/issuable/feed_buttons'
2019-09-30 21:07:59 +05:30
2021-04-29 21:17:54 +05:30
- if @can_bulk_update
= render_if_exists 'shared/issuable/bulk_update_button', type: :issues
2019-09-30 21:07:59 +05:30
2021-04-29 21:17:54 +05:30
= render 'shared/new_project_item_select', path: 'issues/new', label: "New issue", type: :issues, with_feature_enabled: 'issues', with_shared: false, include_projects_in_subgroups: true
2015-12-23 02:04:40 +05:30
2021-04-29 21:17:54 +05:30
= render 'shared/issuable/search_bar', type: :issues
2014-09-02 18:07:02 +05:30
2021-04-29 21:17:54 +05:30
- if @can_bulk_update
= render_if_exists 'shared/issuable/group_bulk_update_sidebar', group: @group, type: :issues
2019-09-30 21:07:59 +05:30
2021-04-29 21:17:54 +05:30
- if Feature.enabled?(:vue_issuables_list, @group) && @issues.to_a.any?
- if use_startup_call?
- add_page_startup_api_call(api_v4_groups_issues_path(id: @group.id, params: startup_call_params))
.js-issuables-list{ data: { endpoint: expose_url(api_v4_groups_issues_path(id: @group.id)),
'can-bulk-edit': @can_bulk_update.to_json,
'empty-state-meta': { svg_path: image_path('illustrations/issues.svg') },
'sort-key': @sort,
type: 'issues',
'scoped-labels-available': scoped_labels_available?(@group).to_json } }
- else
= render 'shared/issues', project_select_button: true