29 lines
1.2 KiB
Text
29 lines
1.2 KiB
Text
- 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'
|
|
|
|
.btn-group
|
|
- if show_export_button
|
|
= render 'projects/issues/export_csv/button'
|
|
|
|
- if show_import_button
|
|
= render 'projects/issues/import_csv/button'
|
|
|
|
- if @can_bulk_update
|
|
= button_tag _("Edit issues"), class: "btn btn-default gl-mr-3 js-bulk-update-toggle"
|
|
- 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) }),
|
|
class: "btn btn-success",
|
|
id: "new_issue_link"
|
|
|
|
- if show_export_button
|
|
= render 'projects/issues/export_csv/modal'
|
|
|
|
- if show_import_button
|
|
= render 'projects/issues/import_csv/modal'
|