Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
c41a5bf3
Commit
c41a5bf3
authored
Apr 22, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyle explore page to sidebar layout
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
5647ce75
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
21 deletions
+27
-21
app/views/explore/projects/trending.html.haml
app/views/explore/projects/trending.html.haml
+7
-1
app/views/layouts/explore.html.haml
app/views/layouts/explore.html.haml
+2
-20
app/views/layouts/nav/_explore.html.haml
app/views/layouts/nav/_explore.html.haml
+18
-0
No files found.
app/views/explore/projects/trending.html.haml
View file @
c41a5bf3
.explore-title
%h3
Explore GitLab
%p
.lead
Discover projects and groups. Share your projects with others
%hr
.explore-trending-block
.explore-trending-block
%p
.lead
%p
.lead
%i
.fa.fa-comments-o
%i
.fa.fa-comments-o
...
@@ -7,5 +13,5 @@
...
@@ -7,5 +13,5 @@
%ul
.bordered-list
%ul
.bordered-list
=
render
@trending_projects
=
render
@trending_projects
.center
.center
.append-bottom-20
=
link_to
'Show all projects'
,
explore_projects_path
,
class:
'btn btn-primary'
=
link_to
'Show all projects'
,
explore_projects_path
,
class:
'btn btn-primary'
app/views/layouts/explore.html.haml
View file @
c41a5bf3
-
page_title
=
'Explore'
-
page_title
=
'Explore
GitLab
'
!!! 5
!!! 5
%html
{
lang:
"en"
}
%html
{
lang:
"en"
}
=
render
"layouts/head"
,
title:
page_title
=
render
"layouts/head"
,
title:
page_title
...
@@ -8,23 +8,5 @@
...
@@ -8,23 +8,5 @@
=
render
"layouts/head_panel"
,
title:
link_to
(
page_title
,
explore_root_path
)
=
render
"layouts/head_panel"
,
title:
link_to
(
page_title
,
explore_root_path
)
-
else
-
else
=
render
"layouts/public_head_panel"
,
title:
link_to
(
page_title
,
explore_root_path
)
=
render
"layouts/public_head_panel"
,
title:
link_to
(
page_title
,
explore_root_path
)
.container.navless-container
.content
.explore-title
%h3
Explore GitLab
%p
.lead
Discover projects and groups. Share your projects with others
=
render
'layouts/page'
,
sidebar:
'layouts/nav/explore'
%ul
.nav.nav-tabs
=
nav_link
(
path:
'projects#trending'
)
do
=
link_to
'Trending Projects'
,
explore_root_path
=
nav_link
(
path:
'projects#starred'
)
do
=
link_to
'Most Starred Projects'
,
starred_explore_projects_path
=
nav_link
(
path:
'projects#index'
)
do
=
link_to
'All Projects'
,
explore_projects_path
=
nav_link
(
controller: :groups
)
do
=
link_to
'All Groups'
,
explore_groups_path
=
yield
app/views/layouts/nav/_explore.html.haml
0 → 100644
View file @
c41a5bf3
%ul
.nav.nav-sidebar
=
nav_link
(
path:
'projects#trending'
)
do
=
link_to
explore_root_path
do
%i
.fa.fa-comments
%span
Trending Projects
=
nav_link
(
path:
'projects#starred'
)
do
=
link_to
starred_explore_projects_path
do
%i
.fa.fa-star
%span
Most Starred Projects
=
nav_link
(
path:
'projects#index'
)
do
=
link_to
explore_projects_path
do
%i
.fa.fa-bookmark
%span
All Projects
=
nav_link
(
controller: :groups
)
do
=
link_to
explore_groups_path
do
%i
.fa.fa-group
%span
All Groups
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment