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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
6b358251
Commit
6b358251
authored
Oct 18, 2018
by
Dennis Tang
Committed by
Rémy Coutable
Oct 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Re-arrange help-related user menu items into new Help menu"
parent
cf08db62
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
15 deletions
+17
-15
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+1
-3
app/views/layouts/header/_current_user_dropdown.html.haml
app/views/layouts/header/_current_user_dropdown.html.haml
+1
-8
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+6
-0
app/views/layouts/header/_help_dropdown.html.haml
app/views/layouts/header/_help_dropdown.html.haml
+8
-0
app/views/shared/_user_dropdown_contributing_link.html.haml
app/views/shared/_user_dropdown_contributing_link.html.haml
+0
-2
ee/app/views/shared/_user_dropdown_instance_review.html.haml
ee/app/views/shared/_user_dropdown_instance_review.html.haml
+1
-2
No files found.
app/assets/stylesheets/framework/header.scss
View file @
6b358251
...
...
@@ -530,8 +530,6 @@
.header-user
{
&
.show
.dropdown-menu
{
width
:
auto
;
min-width
:
unset
;
max-height
:
323px
;
margin-top
:
4px
;
color
:
$gl-text-color
;
...
...
@@ -548,7 +546,7 @@
margin-right
:
0
;
display
:
block
;
vertical-align
:
text-top
;
max-width
:
148
px
;
max-width
:
240
px
;
font-size
:
12px
;
gl-emoji
{
...
...
app/views/layouts/header/_current_user_dropdown.html.haml
View file @
6b358251
...
...
@@ -19,14 +19,7 @@
-
if
current_user_menu?
(
:settings
)
%li
=
link_to
s_
(
"CurrentUser|Settings"
),
profile_path
-
if
current_user_menu?
(
:help
)
%li
=
link_to
_
(
"Help"
),
help_path
-
if
current_user_menu?
(
:help
)
||
current_user_menu?
(
:settings
)
||
current_user_menu?
(
:profile
)
%li
.divider
=
render
'shared/user_dropdown_contributing_link'
-
if
instance_review_permitted?
=
render
'shared/user_dropdown_instance_review'
-
if
current_user_menu?
(
:sign_out
)
%li
.divider
%li
=
link_to
_
(
"Sign out"
),
destroy_user_session_path
,
class:
"sign-out-link"
app/views/layouts/header/_default.html.haml
View file @
6b358251
...
...
@@ -53,6 +53,12 @@
=
sprite_icon
(
'todo-done'
,
size:
16
)
%span
.badge.badge-pill.todos-count
{
class:
(
'hidden'
if
todos_pending_count
.
zero?
)
}
=
todos_count_format
(
todos_pending_count
)
%li
.nav-item.header-help.dropdown
=
link_to
help_path
,
class:
'header-help-dropdown-toggle'
,
data:
{
toggle:
"dropdown"
}
do
=
sprite_icon
(
'question'
,
size:
16
)
=
sprite_icon
(
'angle-down'
,
css_class:
'caret-down'
)
.dropdown-menu.dropdown-menu-right
=
render
'layouts/header/help_dropdown'
-
if
header_link?
(
:user_dropdown
)
%li
.nav-item.header-user.dropdown
=
link_to
current_user
,
class:
user_dropdown_class
,
data:
{
toggle:
"dropdown"
}
do
...
...
app/views/layouts/header/_help_dropdown.html.haml
0 → 100644
View file @
6b358251
%ul
-
if
current_user_menu?
(
:help
)
%li
=
link_to
_
(
"Help"
),
help_path
-
if
current_user_menu?
(
:help
)
||
current_user_menu?
(
:settings
)
||
current_user_menu?
(
:profile
)
=
render
'shared/user_dropdown_contributing_link'
-
if
instance_review_permitted?
=
render
'shared/user_dropdown_instance_review'
app/views/shared/_user_dropdown_contributing_link.html.haml
View file @
6b358251
%li
=
link_to
"https://about.gitlab.com/contributing"
,
target:
'_blank'
,
class:
'text-nowrap'
do
=
_
(
"Contribute to GitLab"
)
=
sprite_icon
(
'external-link'
,
size:
16
)
%li
.divider
ee/app/views/shared/_user_dropdown_instance_review.html.haml
View file @
6b358251
%li
.divider
%li
=
link_to
admin_instance_review_path
,
target:
'_blank'
,
class:
'text-nowrap'
do
=
_
(
"Get a free instance review"
)
=
sprite_icon
(
'external-link'
,
size:
16
)
%li
.divider
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