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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-23 12:13:33 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-23 12:13:33 +0400
commit1df0345e9e642ca7e9d73c12430921b0fe62d25e (patch)
treefc2584e67ce95d8f832420a3df0f7594a475d359 /app/views/layouts
parent6b4d5d21be69705f22cb2e848fdba9f182ef2bc5 (diff)
Explore area
Create one place for exploring GitLab instance projects and groups for both signed in and anonymous users Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/devise.html.haml2
-rw-r--r--app/views/layouts/public.html.haml25
2 files changed, 22 insertions, 5 deletions
diff --git a/app/views/layouts/devise.html.haml b/app/views/layouts/devise.html.haml
index ff27fcc0f40..852352a5004 100644
--- a/app/views/layouts/devise.html.haml
+++ b/app/views/layouts/devise.html.haml
@@ -33,6 +33,6 @@
%hr
.container
.footer-links
- = link_to "Explore public projects", public_projects_path
+ = link_to "Explore", public_explore_path
= link_to "Documentation", "http://doc.gitlab.com/"
= link_to "About GitLab", "https://about.gitlab.com/"
diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml
index 3c76bbb9575..9d76c239999 100644
--- a/app/views/layouts/public.html.haml
+++ b/app/views/layouts/public.html.haml
@@ -1,11 +1,28 @@
+- page_title = 'Explore'
!!! 5
%html{ lang: "en"}
- = render "layouts/head", title: "Public Projects"
+ = render "layouts/head", title: page_title
%body{class: "#{app_theme} application", :'data-page' => body_data_page}
= render "layouts/broadcast"
- if current_user
- = render "layouts/head_panel", title: "Public Projects"
+ = render "layouts/head_panel", title: page_title
- else
- = render "layouts/public_head_panel", title: "Public Projects"
+ = render "layouts/public_head_panel", title: page_title
.container.navless-container
- .content= yield
+ .content
+ .explore-title
+ %h3
+ Explore GitLab
+ %p.lead
+ Discover projects and groups. Share your projects with others
+
+
+ %ul.nav.nav-tabs
+ = nav_link(controller: :explore) do
+ = link_to 'Trending Projects', public_explore_path
+ = nav_link(controller: :projects) do
+ = link_to 'All Projects', public_projects_path
+ = nav_link(controller: :groups) do
+ = link_to 'All Groups', public_groups_path
+
+ = yield