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
13efc315
authored
Sep 24, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: show more detailed status info in node-detail
parent
d49b38d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
27 deletions
+19
-27
circle/dashboard/templates/dashboard/node-detail.html
+19
-27
No files found.
circle/dashboard/templates/dashboard/node-detail.html
View file @
13efc315
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
<div
class=
"pull-right"
style=
"padding-top: 15px;"
>
<div
class=
"pull-right"
style=
"padding-top: 15px;"
>
<a
title=
"{% trans "
Rename
"
%}"
href=
"#"
class=
"btn btn-default btn-xs node-details-rename-button"
><i
class=
"fa fa-pencil"
></i></a>
<a
title=
"{% trans "
Rename
"
%}"
href=
"#"
class=
"btn btn-default btn-xs node-details-rename-button"
><i
class=
"fa fa-pencil"
></i></a>
<a
title=
"{% trans "
Delete
"
%}"
data-node-pk=
"{{ node.pk }}"
class=
"btn btn-default btn-xs real-link node-delete"
href=
"{% url "
dashboard
.
views
.
delete-node
"
pk=
node.pk
%}"
><i
class=
"fa fa-trash-o"
></i></a>
<a
title=
"{% trans "
Delete
"
%}"
data-node-pk=
"{{ node.pk }}"
class=
"btn btn-default btn-xs real-link node-delete"
href=
"{% url "
dashboard
.
views
.
delete-node
"
pk=
node.pk
%}"
><i
class=
"fa fa-trash-o"
></i></a>
<a
title=
"{% trans "
Help
"
%}"
href=
"#"
class=
"btn btn-default btn-xs node-details-help-button"
><i
class=
"fa fa-question"
></i></a>
</div>
</div>
<h1>
<h1>
<div
id=
"node-details-rename"
>
<div
id=
"node-details-rename"
>
...
@@ -26,41 +25,34 @@
...
@@ -26,41 +25,34 @@
{{ node.name }}
{{ node.name }}
</div>
</div>
</h1>
</h1>
<div
class=
"node-details-help js-hidden"
>
<ul
style=
"list-style: none;"
>
<li>
<strong>
{% trans "Rename" %}:
</strong>
{% trans "Change the name of the node." %}
</li>
<li>
<strong>
{% trans "Flush" %}:
</strong>
{% trans "Disable node and move all instances to other one." %}
</li>
<li>
<strong>
{% trans "Enable" %}:
</strong>
{% trans "Enables node." %}
</li>
<li>
<strong>
{% trans "Disable" %}:
</strong>
{% trans "Disables node." %}
</li>
<li>
<strong>
{% trans "Delete" %}:
</strong>
{% trans "Remove node and it's host." %}
</li>
</ul>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-2"
id=
"node-info-pane"
>
<div
class=
"col-md-2"
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
<span
id=
"node-details-state"
class=
"label
{% if node.state == 'ACTIVE' %}label-success
{% if node.state == 'ACTIVE' %}label-success
{% elif node.state == 'PASSIVE' %}label-
danger
{% elif node.state == 'PASSIVE' %}label-
warning
{% else %}label-
warning
{% endif %}"
>
{% else %}label-
danger
{% endif %}"
>
<i
class=
"fa {{ node.get_status_icon }}"
></i>
{{ node.get_status_display|upper }}
<i
class=
"fa {{ node.get_status_icon }}"
></i>
{{ node.get_status_display|upper }}
</span>
</span>
</div>
</div>
<div>
{% if node.enabled %}
<span
class=
"label label-success"
>
{% trans "Enabled" %}
</span>
{% if node.schedule_enabled %}
<span
class=
"label label-success"
>
{% trans "Schedule enabled" %}
</span>
{% else %}
<span
class=
"label label-warning"
>
{% trans "Schedule disabled" %}
</span>
{% endif %}
{% else %}
<span
class=
"label label-warning"
>
{% trans "Disabled" %}
</span>
{% endif %}
{% if node.online %}
<span
class=
"label label-success"
>
{% trans "Online" %}
</span>
{% else %}
<span
class=
"label label-warning"
>
{% trans "Offline" %}
</span>
{% endif %}
</div>
</div>
</div>
<div
class=
"col-md-10"
id=
"node-detail-pane"
>
<div
class=
"col-md-10"
id=
"node-detail-pane"
>
<div
class=
"panel panel-default"
id=
"node-detail-panel"
>
<div
class=
"panel panel-default"
id=
"node-detail-panel"
>
...
...
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