Commit 44a45184 authored by Kushal Pandya's avatar Kushal Pandya

Show correct copy on page based on search params presence

parent d5b77d24
- has_filters_applied = params[:label_name].present? || params[:author_username].present? || params[:search].present?
.row.empty-state .row.empty-state
.col-xs-12 .col-xs-12
.svg-content .svg-content
...@@ -5,8 +7,14 @@ ...@@ -5,8 +7,14 @@
.col-xs-12 .col-xs-12
.text-content .text-content
%h4 %h4
= _('Epics let you manage your portfolio of projects more efficiently and with less effort') - if has_filters_applied
= _('Sorry, no epics matched your search')
- else
= _('Epics let you manage your portfolio of projects more efficiently and with less effort')
%p %p
= _('Track groups of issues that share a theme, across projects and milestones') - if has_filters_applied
= _('To widen your search, change or remove filters. If something is missing, create an epic.')
- else
= _('Track groups of issues that share a theme, across projects and milestones')
- if can?(current_user, :create_epic, @group) - if can?(current_user, :create_epic, @group)
#new-epic-app{ data: { endpoint: request.url } } #new-epic-app{ data: { endpoint: request.url } }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment