debian-mirror-gitlab/app/views/layouts/nav/_top_nav.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
479 B
Text
Raw Normal View History

2021-06-08 01:23:25 +05:30
- view_model = top_nav_view_model(project: @project, group: @group)
%ul.list-unstyled.navbar-sub-nav#js-top-nav{ data: { view_model: view_model.to_json } }
%li
%a.top-nav-toggle{ href: '#', type: 'button', data: { toggle: "dropdown" } }
2021-09-04 01:27:46 +05:30
= sprite_icon('hamburger', css_class: "dropdown-icon")
2021-06-08 01:23:25 +05:30
= view_model[:activeTitle]
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]