Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
circle/dashboard/templates/dashboard/index-nodes.html
+5
-1
No files found.
circle/dashboard/templates/dashboard/index-nodes.html
View file @
940c9070
...
...
@@ -45,7 +45,11 @@
+
<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>
<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