Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_top_nav.html.haml « nav « layouts « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aa1c462d2bf7da395a093fa8572274f3c8cec8be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- view_model = top_nav_view_model(project: @project, group: @group)
%ul.list-unstyled.nav.navbar-sub-nav#js-top-nav{ data: { view_model: view_model.to_json } }
  %li
    %a.top-nav-toggle{ href: '#', type: 'button', data: { toggle: "dropdown" } }
      = sprite_icon('hamburger')
      - if view_model[:menuTitle]
        .gl-ml-3= view_model[:menuTitle]

.hidden
  - view_model[:shortcuts].each do |shortcut|
    = link_to shortcut[:href], class: shortcut[:css_class] do
      = shortcut[:title]