explore.html.haml 1.0 KB
Newer Older
D
Dmitriy Zaporozhets 已提交
1
- page_title = 'Explore'
2 3
!!! 5
%html{ lang: "en"}
D
Dmitriy Zaporozhets 已提交
4
  = render "layouts/head", title: page_title
5
  %body{class: "#{app_theme} sidenav application", :'data-page' => body_data_page}
6
    = render "layouts/broadcast"
7
    - if current_user
D
Dmitriy Zaporozhets 已提交
8
      = render "layouts/head_panel", title: page_title
9
    - else
D
Dmitriy Zaporozhets 已提交
10
      = render "layouts/public_head_panel", title: page_title
11
    .container.navless-container
D
Dmitriy Zaporozhets 已提交
12 13 14 15 16 17 18 19 20
      .content
        .explore-title
          %h3
            Explore GitLab
          %p.lead
            Discover projects and groups. Share your projects with others


        %ul.nav.nav-tabs
D
Dmitriy Zaporozhets 已提交
21 22
          = nav_link(path: 'projects#trending') do
            = link_to 'Trending Projects', explore_root_path
23 24
          = nav_link(path: 'projects#starred') do
            = link_to 'Most Starred Projects', starred_explore_projects_path
D
Dmitriy Zaporozhets 已提交
25 26
          = nav_link(path: 'projects#index') do
            = link_to 'All Projects', explore_projects_path
D
Dmitriy Zaporozhets 已提交
27
          = nav_link(controller: :groups) do
D
Dmitriy Zaporozhets 已提交
28
            = link_to 'All Groups', explore_groups_path
D
Dmitriy Zaporozhets 已提交
29 30

        = yield