diff options
author | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-11-08 14:54:05 +0300 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-11-19 18:58:35 +0300 |
commit | 263849f6c22742fa0ed8908e909b0b1b60b4c387 (patch) | |
tree | a3cc4e3b3ac69e54bcfc373a06fa235904f710cc /app/views | |
parent | c3f933856d1f82e0ec8ab2eab2c1b90ad12364e2 (diff) |
Apply to MRs
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/shared/empty_states/_merge_requests.html.haml | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/app/views/shared/empty_states/_merge_requests.html.haml b/app/views/shared/empty_states/_merge_requests.html.haml index 421a1b2415b..39e3a3563a7 100644 --- a/app/views/shared/empty_states/_merge_requests.html.haml +++ b/app/views/shared/empty_states/_merge_requests.html.haml @@ -8,16 +8,19 @@ = image_tag 'illustrations/merge_requests.svg' .col-12 .text-content - - if has_button + - if has_filter_bar_param? + %h4.text-center + = _("Sorry, your filter produced no results") + %p + = _("To widen your search, change or remove filters in the filter bar above") + - else %h4 = _("Merge requests are a place to propose changes you've made to a project and discuss those changes with others") %p = _("Interested parties can even contribute by pushing commits if they want to.") - .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") + - if has_button + .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' |