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

20 lines
1.1 KiB
Text
Raw Normal View History

2021-06-08 01:23:25 +05:30
-# WARNING! This file is slated to be removed along with the `combined_menu`
-# feature flag. The logic here will be migrated to an upcoming `top_nav_helper`.
-# Please see [this MR][1] for more context.
-# [1]: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56587
2018-03-17 18:26:18 +05:30
%ul.list-unstyled.navbar-sub-nav
2018-03-27 19:54:05 +05:30
- if explore_nav_link?(:projects)
= nav_link(path: ['dashboard#show', 'root#show', 'projects#trending', 'projects#starred', 'projects#index'], html_options: {class: 'home'}) do
2018-11-18 11:00:15 +05:30
= link_to explore_root_path, title: _('Projects'), class: 'dashboard-shortcuts-projects' do
= _('Projects')
2018-03-27 19:54:05 +05:30
- if explore_nav_link?(:groups)
= nav_link(controller: [:groups, 'groups/milestones', 'groups/group_members']) do
2018-11-18 11:00:15 +05:30
= link_to explore_groups_path, title: _('Groups'), class: 'dashboard-shortcuts-groups' do
= _('Groups')
2018-03-27 19:54:05 +05:30
- if explore_nav_link?(:snippets)
= nav_link(controller: :snippets) do
2018-11-18 11:00:15 +05:30
= link_to explore_snippets_path, title: _('Snippets'), class: 'dashboard-shortcuts-snippets' do
= _('Snippets')
2018-03-17 18:26:18 +05:30
%li
2018-11-18 11:00:15 +05:30
= link_to _("Help"), help_path, title: _('About GitLab CE')