Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fc449f05
authored
Jan 14, 2015
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix node coloring
parent
db42d716
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
circle/dashboard/static/dashboard/node-list.js
+2
-8
circle/dashboard/templates/dashboard/node-list/column-monitor.html
+1
-0
No files found.
circle/dashboard/static/dashboard/node-list.js
View file @
fc449f05
$
(
function
()
{
$
(
document
).
ready
(
function
()
{
colortable
();
});
// find disabled nodes, set danger (red) on the rows
function
colortable
()
{
$
(
'.false'
).
closest
(
"tr"
).
addClass
(
'danger'
);
$
(
'.true'
).
closest
(
"tr"
).
removeClass
(
'danger'
);
}
$
(
'.node-disabled'
).
closest
(
"tr"
).
addClass
(
'danger'
);
});
});
circle/dashboard/templates/dashboard/node-list/column-monitor.html
View file @
fc449f05
{% load sizefieldtags %}
{% load i18n %}
<span
class=
"{% if not record.enabled %}node-disabled{% endif %}"
></span>
<i
class=
"fa fa-gears"
></i>
{% trans "CPU" %}
<div
class=
"progress pull-right"
>
<div
class=
"progress-bar progress-bar-success"
role=
"progressbar"
...
...
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