Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
734415ce
authored
Feb 22, 2014
by
Guba Sándor
Committed by
Őry Máté
Feb 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: fixed node status names to be capital
parent
ad66da57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
circle/dashboard/templates/dashboard/node-detail.html
+4
-4
circle/vm/models/node.py
+4
-4
No files found.
circle/dashboard/templates/dashboard/node-detail.html
View file @
734415ce
...
...
@@ -9,10 +9,10 @@
<div
class=
"row"
>
<div
class=
"col-md-4"
id=
"node-info-pane"
>
<div
id=
"node-info-data"
class=
"big"
>
<span
id=
"node-details-state"
class=
"label {% if node.state == 'O
nline
' %}label-success
{% elif node.state == 'M
issing
' %}label-danger
{% elif node.state == 'D
isabled
' %}label-warning
{% elif node.state == 'O
ffline
' %}label-warning
<span
id=
"node-details-state"
class=
"label {% if node.state == 'O
NLINE
' %}label-success
{% elif node.state == 'M
ISSING
' %}label-danger
{% elif node.state == 'D
ISABLED
' %}label-warning
{% elif node.state == 'O
FFLINE
' %}label-warning
{% endif %}"
>
{{ node.state }}
</span>
<div
class=
"btn-group"
>
{% with node as record %}
...
...
circle/vm/models/node.py
View file @
734415ce
...
...
@@ -76,13 +76,13 @@ class Node(TimeStampedModel):
"""
if
self
.
enabled
and
self
.
online
:
return
'O
nline
'
return
'O
NLINE
'
elif
self
.
enabled
and
not
self
.
online
:
return
'M
issing
'
return
'M
ISSING
'
elif
not
self
.
enabled
and
self
.
online
:
return
'D
isabled
'
return
'D
ISABLED
'
else
:
return
'O
ffline
'
return
'O
FFLINE
'
def
disable
(
self
,
user
=
None
):
''' Disable the node.'''
...
...
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