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
e84df44e
Commit
e84df44e
authored
Mar 14, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redesign search filters
parent
4673c853
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
18 deletions
+10
-18
_filter.html.haml
app/views/search/_filter.html.haml
+10
-18
No files found.
app/views/search/_filter.html.haml
View file @
e84df44e
%fieldset
%fieldset
%legend
Groups:
%legend
Groups:
%ul
.nav.nav-pills.nav-stacked
.clearfix
%li
{
class:
(
"active"
if
params
[
:group_id
].
blank?
)}
=
select_tag
'group_id'
,
options_from_collection_for_select
(
current_user
.
authorized_groups
,
:id
,
:name
,
params
[
:group_id
]),
prompt:
'All'
,
include_blank:
true
,
class:
'trigger-submit chosen'
=
link_to
search_path
(
group_id:
nil
,
search:
params
[
:search
])
do
Any
-
current_user
.
authorized_groups
.
each
do
|
group
|
%fieldset
%li
{
class:
(
"active"
if
params
[
:group_id
]
==
group
.
id
.
to_s
)}
%legend
Teams:
=
link_to
search_path
(
group_id:
group
.
id
,
search:
params
[
:search
])
do
.clearfix
=
group
.
name
=
select_tag
'team_id'
,
options_from_collection_for_select
(
current_user
.
authorized_teams
,
:id
,
:name
,
params
[
:team_id
]),
prompt:
'All'
,
include_blank:
true
,
class:
'trigger-submit chosen'
%fieldset
%fieldset
%legend
Projects:
%legend
Projects:
%ul
.nav.nav-pills.nav-stacked
.clearfix
%li
{
class:
(
"active"
if
params
[
:project_id
].
blank?
)}
=
select_tag
'project_id'
,
options_from_collection_for_select
(
current_user
.
authorized_projects
,
:id
,
:name_with_namespace
,
params
[
:project_id
]),
prompt:
'All'
,
include_blank:
true
,
class:
'trigger-submit chosen'
=
link_to
search_path
(
project_id:
nil
,
search:
params
[
:search
])
do
Any
-
current_user
.
authorized_projects
.
each
do
|
project
|
%li
{
class:
(
"active"
if
params
[
:project_id
]
==
project
.
id
.
to_s
)}
=
link_to
search_path
(
project_id:
project
.
id
,
search:
params
[
:search
])
do
=
project
.
name_with_namespace
=
hidden_field_tag
:group_id
,
params
[
:group_id
]
=
hidden_field_tag
:project_id
,
params
[
:project_id
]
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