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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
c00917e4
Commit
c00917e4
authored
Jun 25, 2013
by
Jack Weeden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't show 'Filter by labels' text if there are no labels
Don't show project search form if there are no projects
parent
82271e78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
app/views/dashboard/projects.html.haml
app/views/dashboard/projects.html.haml
+15
-13
No files found.
app/views/dashboard/projects.html.haml
View file @
c00917e4
...
@@ -20,22 +20,24 @@
...
@@ -20,22 +20,24 @@
=
nav_tab
:scope
,
'joined'
do
=
nav_tab
:scope
,
'joined'
do
=
link_to
"Joined"
,
projects_dashboard_path
(
scope:
'joined'
)
=
link_to
"Joined"
,
projects_dashboard_path
(
scope:
'joined'
)
%p
.light
Filter by label:
-
if
@labels
.
any?
%ul
.bordered-list
%p
.light
Filter by label:
-
@labels
.
each
do
|
label
|
%ul
.bordered-list
%li
{
class:
(
label
.
name
==
params
[
:label
])
?
'active'
:
'light'
}
-
@labels
.
each
do
|
label
|
=
link_to
projects_dashboard_path
(
scope:
params
[
:scope
],
label:
label
.
name
)
do
%li
{
class:
(
label
.
name
==
params
[
:label
])
?
'active'
:
'light'
}
%i
.icon-tag
=
link_to
projects_dashboard_path
(
scope:
params
[
:scope
],
label:
label
.
name
)
do
=
label
.
name
%i
.icon-tag
=
label
.
name
.span9
.span9
=
form_tag
projects_dashboard_path
,
method:
'get'
do
-
if
@projects
.
any?
%fieldset
.dashboard-search-filter
=
form_tag
projects_dashboard_path
,
method:
'get'
do
=
hidden_field_tag
"scope"
,
params
[
:scope
]
%fieldset
.dashboard-search-filter
=
search_field_tag
"search"
,
params
[
:search
],
{
id:
'dashboard_projects_search'
,
placeholder:
'Search'
,
class:
'left input-xxlarge'
}
=
hidden_field_tag
"scope"
,
params
[
:scope
]
=
button_tag
type:
'submit'
,
class:
'btn'
do
=
search_field_tag
"search"
,
params
[
:search
],
{
id:
'dashboard_projects_search'
,
placeholder:
'Search'
,
class:
'left input-xxlarge'
}
%i
.icon-search
=
button_tag
type:
'submit'
,
class:
'btn'
do
%i
.icon-search
%ul
.bordered-list
%ul
.bordered-list
-
@projects
.
each
do
|
project
|
-
@projects
.
each
do
|
project
|
...
...
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