debian-mirror-gitlab/app/views/shared/empty_states/_merge_requests.html.haml

24 lines
1.1 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- button_path = local_assigns.fetch(:button_path, false)
- project_select_button = local_assigns.fetch(:project_select_button, false)
- has_button = button_path || project_select_button
.row.empty-state.merge-requests
2018-11-08 19:23:39 +05:30
.col-12
2017-08-17 22:00:37 +05:30
.svg-content
2018-03-17 18:26:18 +05:30
= image_tag 'illustrations/merge_requests.svg'
2018-11-08 19:23:39 +05:30
.col-12
2017-08-17 22:00:37 +05:30
.text-content
2019-01-03 12:48:30 +05:30
- if has_button
2017-08-17 22:00:37 +05:30
%h4
2018-03-17 18:26:18 +05:30
= _("Merge requests are a place to propose changes you've made to a project and discuss those changes with others")
2017-08-17 22:00:37 +05:30
%p
2018-03-17 18:26:18 +05:30
= _("Interested parties can even contribute by pushing commits if they want to.")
2019-01-03 12:48:30 +05:30
.text-center
- if project_select_button
= render 'shared/new_project_item_select', path: 'merge_requests/new', label: _('New merge request'), type: :merge_requests, with_feature_enabled: 'merge_requests'
- else
= link_to _('New merge request'), button_path, class: 'btn btn-success', title: _('New merge request'), id: 'new_merge_request_link'
- else
%h4.text-center
= _("There are no merge requests to show")