Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9475b2bf
authored
Jul 30, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: minor design fix for group search
parent
c9d8c0ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
circle/dashboard/static/dashboard/dashboard.js
+4
-4
No files found.
circle/dashboard/static/dashboard/dashboard.js
View file @
9475b2bf
...
...
@@ -350,9 +350,9 @@ $(function () {
}
}
for
(
var
i
=
0
;
i
<
5
&&
i
<
search_result
.
length
;
i
++
)
html
+=
generateGroupHTML
(
search_result
[
i
].
url
,
search_result
[
i
].
name
);
html
+=
generateGroupHTML
(
search_result
[
i
].
url
,
search_result
[
i
].
name
,
search_result
.
length
<
5
);
if
(
search_result
.
length
==
0
)
html
+=
'<div class="list-group-item">No result</div>'
;
html
+=
'<div class="list-group-item
list-group-item-last
">No result</div>'
;
$
(
"#dashboard-group-list"
).
html
(
html
);
// if there is only one result and ENTER is pressed redirect
...
...
@@ -396,8 +396,8 @@ function generateVmHTML(pk, name, host, icon, _status, fav, is_last) {
'</a>'
;
}
function
generateGroupHTML
(
url
,
name
)
{
return
'<a href="'
+
url
+
'" class="list-group-item real-link">'
+
function
generateGroupHTML
(
url
,
name
,
is_last
)
{
return
'<a href="'
+
url
+
'" class="list-group-item real-link
'
+
(
is_last
?
" list-group-item-last"
:
""
)
+
'
">'
+
'<i class="fa fa-users"></i> '
+
name
+
'</a>'
;
}
...
...
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