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
c37492b5
Commit
c37492b5
authored
Oct 15, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
profile in header
parent
876ebbd9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
app/views/layouts/_head_panel.html.erb
app/views/layouts/_head_panel.html.erb
+5
-4
No files found.
app/views/layouts/_head_panel.html.erb
View file @
c37492b5
...
...
@@ -10,12 +10,13 @@
</div>
<div
class=
"right"
>
<%=
link_to
truncate
(
@project
.
name
,
:length
=>
20
),
project_path
(
@project
),
:class
=>
"current button"
if
@project
&&
!
@project
.
new_record?
%>
<%=
link_to
'Home'
,
root_path
,
:class
=>
current_page?
(
root_url
)
?
"current button"
:
"button"
%>
<%=
link_to
'Projects'
,
projects_path
,
:class
=>
current_page?
(
projects_path
)
?
"current button"
:
"button"
%>
<%=
link_to
'Profile'
,
profile_path
,
:class
=>
(
controller
.
controller_name
==
"keys"
)
?
"current button"
:
"button"
%>
<%=
link_to
(
'Admin'
,
admin_root_path
,
:class
=>
admin_namespace?
?
"current button"
:
"button"
)
if
current_user
.
is_admin?
%>
<%#= link_to 'Profile', edit_user_registration_path, :class => "button" %>
<%=
link_to
'Logout'
,
destroy_user_session_path
,
:class
=>
"button"
,
:method
=>
:delete
%>
<%=
link_to
profile_path
,
:class
=>
((
controller
.
controller_name
==
"keys"
||
controller
.
controller_name
==
"profile"
)
?
"current button"
:
"button"
)
do
%>
<%=
image_tag
gravatar_icon
(
current_user
.
email
)
%>
<%=
current_user
.
name
.
split
(
" "
).
first
%>
<%
end
%>
<%=
link_to
'Logout'
,
destroy_user_session_path
,
:style
=>
"border-left: 1px solid #666;"
,
:class
=>
"button"
,
:method
=>
:delete
%>
</div>
</div>
</div>
...
...
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