Commit 82a12913 authored by Kushal Pandya's avatar Kushal Pandya

Add List and Roadmap sub-links under Epics

parent 9db2f02c
- return unless group.feature_available?(:epics) - return unless group.feature_available?(:epics)
- epics = EpicsFinder.new(current_user, group_id: @group.id).execute - epics = EpicsFinder.new(current_user, group_id: @group.id).execute
- epics_items = ['epics#show', 'epics#index'] - epics_items = ['epics#show', 'epics#index', 'roadmap#show']
= nav_link(path: epics_items) do = nav_link(path: epics_items) do
= link_to group_epics_path(group) do = link_to group_epics_path(group) do
...@@ -10,9 +10,16 @@ ...@@ -10,9 +10,16 @@
%span.nav-item-name %span.nav-item-name
Epics Epics
%span.badge.count= number_with_delimiter(epics.count) %span.badge.count= number_with_delimiter(epics.count)
%ul.sidebar-sub-level-items.is-fly-out-only %ul.sidebar-sub-level-items
= nav_link(path: epics_items, html_options: { class: "fly-out-top-item" } ) do = nav_link(path: epics_items, html_options: { class: "fly-out-top-item" } ) do
= link_to group_epics_path(group) do = link_to group_epics_path(group) do
%strong.fly-out-top-item-name %strong.fly-out-top-item-name= _('Epics')
#{ _('Epics') }
%span.badge.count.epic_counter.fly-out-badge= number_with_delimiter(epics.count) %span.badge.count.epic_counter.fly-out-badge= number_with_delimiter(epics.count)
%li.divider.fly-out-top-item
= nav_link(path: 'epics#index', html_options: { class: 'home' }) do
= link_to group_epics_path(group), title: 'List' do
%span= _('List')
= nav_link(path: 'roadmap#show', html_options: { class: 'home' }) do
= link_to group_roadmap_path(group), title: 'Roadmap' do
%span= _('Roadmap')
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