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
7a311c23
Commit
7a311c23
authored
Mar 05, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated project list dropdown to use dropdown classes
parent
62067c5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
32 deletions
+11
-32
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+5
-23
app/views/shared/projects/_dropdown.html.haml
app/views/shared/projects/_dropdown.html.haml
+6
-9
No files found.
app/assets/stylesheets/framework/dropdowns.scss
View file @
7a311c23
...
@@ -81,8 +81,9 @@
...
@@ -81,8 +81,9 @@
&
:
:
before
{
&
:
:
before
{
content
:
"\f00c"
;
content
:
"\f00c"
;
position
:
absolute
;
position
:
absolute
;
left
:
4px
;
left
:
5px
;
top
:
8px
;
top
:
50%
;
margin-top
:
-7px
;
font
:
normal
normal
normal
14px
/
1
FontAwesome
;
font
:
normal
normal
normal
14px
/
1
FontAwesome
;
font-size
:
inherit
;
font-size
:
inherit
;
text-rendering
:
auto
;
text-rendering
:
auto
;
...
@@ -94,28 +95,9 @@
...
@@ -94,28 +95,9 @@
}
}
.dropdown-header
{
.dropdown-header
{
padding-left
:
10
px
;
padding-left
:
5
px
;
padding-right
:
10
px
;
padding-right
:
5
px
;
color
:
$dropdown-header-color
;
color
:
$dropdown-header-color
;
font-size
:
13px
;
font-size
:
13px
;
line-height
:
22px
;
line-height
:
22px
;
}
}
.dropdown-with-checkmark
{
li
>
.legend
{
font-size
:
13px
;
color
:
$secondary-text
;
margin-bottom
:
5px
;
}
li
>
a
{
padding-left
:
20px
;
line-height
:
28px
;
i
{
position
:
absolute
;
left
:
1px
;
line-height
:
28px
;
}
}
}
app/views/shared/projects/_dropdown.html.haml
View file @
7a311c23
...
@@ -5,21 +5,18 @@
...
@@ -5,21 +5,18 @@
%span
.light
%span
.light
=
projects_sort_options_hash
[
@sort
]
=
projects_sort_options_hash
[
@sort
]
%b
.caret
%b
.caret
%ul
.dropdown-menu.dropdown-menu-align-right.dropdown-
with-checkmark
%ul
.dropdown-menu.dropdown-menu-align-right.dropdown-
menu-selectable
%li
%li
.dropdown-header
.legend
Sort by
Sort by
-
projects_sort_options_hash
.
each
do
|
value
,
title
|
-
projects_sort_options_hash
.
each
do
|
value
,
title
|
%li
%li
=
link_to
filter_projects_path
(
sort:
value
,
archived:
archived
)
do
=
link_to
filter_projects_path
(
sort:
value
,
archived:
archived
),
class:
(
"is-active"
if
@sort
==
value
)
do
=
icon
(
'check'
)
if
@sort
==
value
=
title
=
title
%li
.divider
%li
.divider
%li
%li
=
link_to
filter_projects_path
(
sort:
@sort
,
archived:
nil
)
do
=
link_to
filter_projects_path
(
sort:
@sort
,
archived:
nil
),
class:
(
"is-active"
unless
params
[
:archived
].
present?
)
do
=
icon
(
'check'
)
unless
params
[
:archived
].
present?
Hide archived projects
Hide archived projects
%li
%li
=
link_to
filter_projects_path
(
sort:
@sort
,
archived:
true
)
do
=
link_to
filter_projects_path
(
sort:
@sort
,
archived:
true
),
class:
(
"is-active"
if
params
[
:archived
].
present?
)
do
=
icon
(
'check'
)
if
params
[
:archived
].
present?
Show archived projects
Show archived projects
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