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

30 lines
1.2 KiB
Text
Raw Normal View History

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
2020-04-22 19:07:51 +05:30
= render 'projects/issues/export_csv/button'
2019-02-15 15:39:39 +05:30
- if show_import_button
= render 'projects/issues/import_csv/button'
- if @can_bulk_update
2020-07-28 23:09:34 +05:30
= button_tag _("Edit issues"), class: "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) }),
class: "btn btn-success",
id: "new_issue_link"
- if show_export_button
2020-04-22 19:07:51 +05:30
= render 'projects/issues/export_csv/modal'
2019-02-15 15:39:39 +05:30
- if show_import_button
= render 'projects/issues/import_csv/modal'