2021-06-08 01:23:25 +05:30
|
|
|
- view_model = top_nav_view_model(project: @project, group: @group)
|
2022-10-11 01:57:18 +05:30
|
|
|
%ul.list-unstyled.nav.navbar-sub-nav#js-top-nav{ data: { view_model: view_model.to_json } }
|
2021-06-08 01:23:25 +05:30
|
|
|
%li
|
|
|
|
%a.top-nav-toggle{ href: '#', type: 'button', data: { toggle: "dropdown" } }
|
2022-10-11 01:57:18 +05:30
|
|
|
= sprite_icon('hamburger')
|
|
|
|
- if view_model[:menuTitle]
|
|
|
|
.gl-ml-3= view_model[:menuTitle]
|
2021-09-04 01:27:46 +05:30
|
|
|
|
|
|
|
.hidden
|
|
|
|
- view_model[:shortcuts].each do |shortcut|
|
|
|
|
= link_to shortcut[:href], class: shortcut[:css_class] do
|
|
|
|
= shortcut[:title]
|