BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
5664ea2f
Commit
5664ea2f
authored
Dec 20, 2017
by
Mark Fletcher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Accept options hash for Groups dropdown
parent
5b880f0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
_dropdown.html.haml
app/views/shared/groups/_dropdown.html.haml
+3
-2
No files found.
app/views/shared/groups/_dropdown.html.haml
View file @
5664ea2f
-
options_hash
=
local_assigns
.
fetch
(
:options_hash
,
groups_sort_options_hash
)
-
show_archive_options
=
local_assigns
.
fetch
(
:show_archive_options
,
false
)
-
if
@sort
.
present?
-
default_sort_by
=
@sort
...
...
@@ -10,12 +11,12 @@
.dropdown.inline.js-group-filter-dropdown-wrap.append-right-10
%button
.dropdown-toggle
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%span
.dropdown-label
=
sort_
options_hash
[
default_sort_by
]
=
options_hash
[
default_sort_by
]
=
icon
(
'chevron-down'
)
%ul
.dropdown-menu.dropdown-menu-align-right.dropdown-menu-selectable
%li
.dropdown-header
=
_
(
"Sort by"
)
-
groups_sort_
options_hash
.
each
do
|
value
,
title
|
-
options_hash
.
each
do
|
value
,
title
|
%li
.js-filter-sort-order
=
link_to
filter_groups_path
(
sort:
value
),
class:
(
"is-active"
if
default_sort_by
==
value
)
do
=
title
...
...
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