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