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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
c41a5bf3
Commit
c41a5bf3
authored
9 years ago
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
Hide 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
%p
.lead
%i
.fa.fa-comments-o
...
...
@@ -7,5 +13,5 @@
%ul
.bordered-list
=
render
@trending_projects
.center
.center
.append-bottom-20
=
link_to
'Show all projects'
,
explore_projects_path
,
class:
'btn btn-primary'
This diff is collapsed.
Click to expand it.
app/views/layouts/explore.html.haml
View file @
c41a5bf3
-
page_title
=
'Explore'
-
page_title
=
'Explore
GitLab
'
!!! 5
%html
{
lang:
"en"
}
=
render
"layouts/head"
,
title:
page_title
...
...
@@ -8,23 +8,5 @@
=
render
"layouts/head_panel"
,
title:
link_to
(
page_title
,
explore_root_path
)
-
else
=
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
%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
=
render
'layouts/page'
,
sidebar:
'layouts/nav/explore'
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
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