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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
2.1 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- button_path = local_assigns.fetch(:button_path, false)
2019-03-02 22:35:43 +05:30
- closed_merged_count = issuables_count_for_state(:merged, :closed)
- opened_merged_count = issuables_count_for_state(:merged, :opened)
- is_opened_state = params[:state] == 'opened'
- is_closed_state = params[:state] == 'closed'
- can_create_merge_request = merge_request_source_project_for_project(@project)
2017-08-17 22:00:37 +05:30
.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
2022-07-16 23:28:13 +05:30
= image_tag 'illustrations/merge_requests.svg', { auto_dark: true }
2018-11-08 19:23:39 +05:30
.col-12
2017-08-17 22:00:37 +05:30
.text-content
2019-02-15 15:39:39 +05:30
- if has_filter_bar_param?
%h4.text-center
= _("Sorry, your filter produced no results")
%p.text-center
= _("To widen your search, change or remove filters above")
2019-03-02 22:35:43 +05:30
.text-center
- if can_create_merge_request
2021-11-11 11:23:49 +05:30
= link_to _("New merge request"), button_path || project_new_merge_request_path(@project), class: "gl-button btn btn-confirm", title: _("New merge request")
2019-03-02 22:35:43 +05:30
- elsif is_opened_state && opened_merged_count == 0 && closed_merged_count > 0
%h4.text-center
= _("There are no open merge requests")
%p.text-center
= _("To keep this project going, create a new merge request")
.text-center
- if can_create_merge_request
2021-11-11 11:23:49 +05:30
= link_to _("New merge request"), button_path || project_new_merge_request_path(@project), class: "gl-button btn btn-confirm", title: _("New merge request")
2019-03-02 22:35:43 +05:30
- elsif is_closed_state && opened_merged_count > 0 && closed_merged_count == 0
%h4.text-center
= _("There are no closed merge requests")
2019-02-15 15:39:39 +05:30
- else
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.")
2023-04-23 21:23:45 +05:30
- if button_path
2019-02-15 15:39:39 +05:30
.text-center
2023-04-23 21:23:45 +05:30
= link_to _('New merge request'), button_path, class: 'gl-button btn btn-confirm', title: _('New merge request'), id: 'new_merge_request_link', data: { qa_selector: "new_merge_request_button" }