Commit 037e7241 authored by Kushal Pandya's avatar Kushal Pandya

Show Epic searchbar and actions only when Epics are present in the Group

parent 14ad4429
- has_filters_applied = params[:label_name].present? || params[:author_username].present? || params[:search].present?
- page_title "Epics"
.top-area
= render 'shared/issuable/epic_nav', type: :epics
.nav-controls
- if can?(current_user, :create_epic, @group)
#new-epic-app{ data: { endpoint: request.url, 'align-right' => true } }
- if has_filters_applied || @epics.to_a.any?
.top-area
= render 'shared/issuable/epic_nav', type: :epics
.nav-controls
- if can?(current_user, :create_epic, @group)
#new-epic-app{ data: { endpoint: request.url, 'align-right' => true } }
= render 'shared/epic/search_bar', type: :epics
= render 'shared/epic/search_bar', type: :epics
- if @epics.to_a.any?
= render 'shared/epics'
......
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