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
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 @@
...
@@ -9,10 +9,10 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-4"
id=
"node-info-pane"
>
<div
class=
"col-md-4"
id=
"node-info-pane"
>
<div
id=
"node-info-data"
class=
"big"
>
<div
id=
"node-info-data"
class=
"big"
>
<span
id=
"node-details-state"
class=
"label {% if node.state == 'O
nline
' %}label-success
<span
id=
"node-details-state"
class=
"label {% if node.state == 'O
NLINE
' %}label-success
{% elif node.state == 'M
issing
' %}label-danger
{% elif node.state == 'M
ISSING
' %}label-danger
{% elif node.state == 'D
isabled
' %}label-warning
{% elif node.state == 'D
ISABLED
' %}label-warning
{% elif node.state == 'O
ffline
' %}label-warning
{% elif node.state == 'O
FFLINE
' %}label-warning
{% endif %}"
>
{{ node.state }}
</span>
{% endif %}"
>
{{ node.state }}
</span>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
{% with node as record %}
{% with node as record %}
...
...
circle/vm/models/node.py
View file @
734415ce
...
@@ -76,13 +76,13 @@ class Node(TimeStampedModel):
...
@@ -76,13 +76,13 @@ class Node(TimeStampedModel):
"""
"""
if
self
.
enabled
and
self
.
online
:
if
self
.
enabled
and
self
.
online
:
return
'O
nline
'
return
'O
NLINE
'
elif
self
.
enabled
and
not
self
.
online
:
elif
self
.
enabled
and
not
self
.
online
:
return
'M
issing
'
return
'M
ISSING
'
elif
not
self
.
enabled
and
self
.
online
:
elif
not
self
.
enabled
and
self
.
online
:
return
'D
isabled
'
return
'D
ISABLED
'
else
:
else
:
return
'O
ffline
'
return
'O
FFLINE
'
def
disable
(
self
,
user
=
None
):
def
disable
(
self
,
user
=
None
):
''' Disable the node.'''
''' 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