2019-02-15 15:39:39 +05:30
|
|
|
- show_feed_buttons = local_assigns.fetch(:show_feed_buttons, true)
|
|
|
|
- show_import_button = local_assigns.fetch(:show_import_button, true) && can?(current_user, :import_issues, @project)
|
|
|
|
- show_export_button = local_assigns.fetch(:show_export_button, true)
|
|
|
|
|
|
|
|
.nav-controls.issues-nav-controls
|
|
|
|
- if show_feed_buttons
|
|
|
|
= render 'shared/issuable/feed_buttons'
|
|
|
|
|
2020-04-22 19:07:51 +05:30
|
|
|
.btn-group
|
2019-02-15 15:39:39 +05:30
|
|
|
- if show_export_button
|
2021-01-29 00:20:46 +05:30
|
|
|
= render 'shared/issuable/csv_export/button', issuable_type: 'issues'
|
2019-02-15 15:39:39 +05:30
|
|
|
|
|
|
|
- if show_import_button
|
|
|
|
= render 'projects/issues/import_csv/button'
|
|
|
|
|
|
|
|
- if @can_bulk_update
|
2021-01-29 00:20:46 +05:30
|
|
|
= button_tag _("Edit issues"), class: "gl-button btn btn-default gl-mr-3 js-bulk-update-toggle"
|
2019-02-15 15:39:39 +05:30
|
|
|
- if show_new_issue_link?(@project)
|
|
|
|
= link_to _("New issue"), new_project_issue_path(@project,
|
|
|
|
issue: { assignee_id: finder.assignee.try(:id),
|
|
|
|
milestone_id: finder.milestones.first.try(:id) }),
|
2021-01-29 00:20:46 +05:30
|
|
|
class: "gl-button btn btn-success",
|
2019-02-15 15:39:39 +05:30
|
|
|
id: "new_issue_link"
|
|
|
|
|
|
|
|
- if show_export_button
|
2021-01-29 00:20:46 +05:30
|
|
|
= render 'shared/issuable/csv_export/modal', issuable_type: 'issues'
|
2019-02-15 15:39:39 +05:30
|
|
|
|
|
|
|
- if show_import_button
|
|
|
|
= render 'projects/issues/import_csv/modal'
|