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
940c9070
authored
Feb 27, 2014
by
Oláh István Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix node label coloring in index
parent
386b5d3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
circle/dashboard/templates/dashboard/index-nodes.html
+6
-2
No files found.
circle/dashboard/templates/dashboard/index-nodes.html
View file @
940c9070
...
...
@@ -44,8 +44,12 @@
<p><span
class=
"big"
><big>
{{ node_num.running }}
</big>
running
</span>
+
<big>
{{ node_num.missing }}
</big>
missing +
<br><big>
{{ node_num.disabled }}
</big>
disabled +
<big>
{{ node_num.offline }}
</big>
offline
</p>
<ul
class=
"list-inline"
>
{% for i in nodes %}
<a
class=
"label {% if i.state == 'online' %}label-success{% elif i.state == 'missing' %}label-danger{% else %}label-warning{% endif %}"
href=
"{% url "
dashboard
.
views
.
node-detail
"
pk=
i.pk
%}"
><i
class=
"icon-{% if i.enabled == True %}play-sign{% else %}pause{% endif %}"
></i>
{{ i.name}}
</a>
{% for i in nodes %}
<a
class=
"label {% if i.state == 'ONLINE' %}label-success
{% elif i.state == 'MISSING' %}label-danger
{% elif i.state == 'DISABLED' %}label-warning
{% elif i.state == 'OFFLINE' %}label-warning
{% endif %}"
href=
"{% url "
dashboard
.
views
.
node-detail
"
pk=
i.pk
%}"
><i
class=
"icon-{% if i.enabled == True %}play-sign{% else %}pause{% endif %}"
></i>
{{ i.name}}
</a>
{% endfor %}
</ul>
...
...
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