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
Léo-Paul Géneau
gitlab-ce
Commits
d6eda842
Commit
d6eda842
authored
Dec 17, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sidenav for profile area
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
51ee71d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
15 deletions
+35
-15
app/views/layouts/nav/_profile.html.haml
app/views/layouts/nav/_profile.html.haml
+23
-7
app/views/layouts/navless.html.haml
app/views/layouts/navless.html.haml
+1
-1
app/views/layouts/profile.html.haml
app/views/layouts/profile.html.haml
+11
-7
No files found.
app/views/layouts/nav/_profile.html.haml
View file @
d6eda842
%ul
%ul
.nav-sidebar.navbar-collapse.collapse
=
nav_link
(
path:
'profiles#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
profile_path
,
title:
"Profile"
do
%i
.fa.fa-user
Profile
=
nav_link
(
controller: :accounts
)
do
=
link_to
"Account"
,
profile_account_path
=
link_to
profile_account_path
do
%i
.fa.fa-gear
Account
=
nav_link
(
controller: :emails
)
do
=
link_to
profile_emails_path
do
%i
.fa.fa-envelope-o
Emails
%span
.count
=
current_user
.
emails
.
count
+
1
-
unless
current_user
.
ldap_user?
=
nav_link
(
controller: :passwords
)
do
=
link_to
"Password"
,
edit_profile_password_path
=
link_to
edit_profile_password_path
do
%i
.fa.fa-lock
Password
=
nav_link
(
controller: :notifications
)
do
=
link_to
"Notifications"
,
profile_notifications_path
=
link_to
profile_notifications_path
do
%i
.fa.fa-inbox
Notifications
=
nav_link
(
controller: :keys
)
do
=
link_to
profile_keys_path
do
%i
.fa.fa-key
SSH Keys
%span
.count
=
current_user
.
keys
.
count
=
nav_link
(
path:
'profiles#design'
)
do
=
link_to
"Design"
,
design_profile_path
=
link_to
design_profile_path
do
%i
.fa.fa-image
Design
=
nav_link
(
controller: :groups
)
do
=
link_to
"Groups"
,
profile_groups_path
=
link_to
profile_groups_path
do
%i
.fa.fa-group
Groups
=
nav_link
(
path:
'profiles#history'
)
do
=
link_to
"History"
,
history_profile_path
=
link_to
history_profile_path
do
%i
.fa.fa-history
History
app/views/layouts/navless.html.haml
View file @
d6eda842
!!! 5
%html
{
lang:
"en"
}
=
render
"layouts/head"
,
title:
@title
%body
{
class:
"#{app_theme} application"
,
:'data-page'
=>
body_data_page
}
%body
{
class:
"#{app_theme}
sidenav
application"
,
:'data-page'
=>
body_data_page
}
=
render
"layouts/broadcast"
=
render
"layouts/head_panel"
,
title:
@title
.container.navless-container
...
...
app/views/layouts/profile.html.haml
View file @
d6eda842
!!! 5
%html
{
lang:
"en"
}
=
render
"layouts/head"
,
title:
"Profile"
%body
{
class:
"#{app_theme} profile"
,
:'data-page'
=>
body_data_page
}
%body
{
class:
"#{app_theme}
sidenav
profile"
,
:'data-page'
=>
body_data_page
}
=
render
"layouts/broadcast"
=
render
"layouts/head_panel"
,
title:
"Profile"
%nav
.main-nav.navbar-collapse.collapse
.container
=
render
'layouts/nav/profile'
.container
.content
=
render
"layouts/flash"
=
yield
.page-with-sidebar
.sidebar-wrapper
=
render
'layouts/nav/profile'
.content-wrapper
.container-fluid
.content
=
render
"layouts/flash"
.clearfix
=
yield
=
yield
:embedded_scripts
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