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
db3c3c74
authored
Feb 17, 2014
by
Oláh István Gergely
Committed by
Őry Máté
Feb 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: refactor node detail templates
parent
6a39ca6c
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
33 deletions
+22
-33
circle/dashboard/templates/dashboard/node-detail.html
+4
-4
circle/dashboard/templates/dashboard/node-detail/_activity-timeline.html
+11
-29
circle/dashboard/templates/dashboard/node-detail/activity.html
+7
-0
circle/dashboard/templates/dashboard/node-detail/home.html
+0
-0
circle/dashboard/templates/dashboard/node-detail/resources.html
+0
-0
circle/dashboard/templates/dashboard/node-detail/vm.html
+0
-0
No files found.
circle/dashboard/templates/dashboard/node-detail.html
View file @
db3c3c74
...
@@ -43,10 +43,10 @@
...
@@ -43,10 +43,10 @@
</ul>
</ul>
<div
id=
"panel-body"
class=
"tab-content panel-body"
>
<div
id=
"panel-body"
class=
"tab-content panel-body"
>
<div
class=
"tab-pane active"
id=
"home"
>
{% include "dashboard/node-detail
-
home.html" %}
</div>
<div
class=
"tab-pane active"
id=
"home"
>
{% include "dashboard/node-detail
/
home.html" %}
</div>
<div
class=
"tab-pane"
id=
"resources"
>
{% include "dashboard/node-detail
-
resources.html" %}
</div>
<div
class=
"tab-pane"
id=
"resources"
>
{% include "dashboard/node-detail
/
resources.html" %}
</div>
<div
class=
"tab-pane"
id=
"activity"
>
{% include "dashboard/node-detail
-
activity.html" %}
</div>
<div
class=
"tab-pane"
id=
"activity"
>
{% include "dashboard/node-detail
/
activity.html" %}
</div>
<div
class=
"tab-pane"
id=
"virtualmachines"
>
{% include "dashboard/node-detail
-
vm.html" %}
</div>
<div
class=
"tab-pane"
id=
"virtualmachines"
>
{% include "dashboard/node-detail
/
vm.html" %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
circle/dashboard/templates/dashboard/node-detail
-activity
.html
→
circle/dashboard/templates/dashboard/node-detail
/_activity-timeline
.html
View file @
db3c3c74
{% load i18n %}
{% load i18n %}
<h3>
{% trans "Activity" %}
</h3>
{% for a in activities %}
<style>
<div
class=
"activity"
data-activity-id=
"{{ a.pk }}"
>
.sub-timeline
{
<span
class=
"timeline-icon{% if a.has_failed %} timeline-icon-failed{% endif %}"
>
border-left
:
3px
solid
green
;
margin-left
:
30px
;
padding-left
:
10px
;
}
</style>
<div
class=
"timeline"
>
{% for a in activity %}
<div
class=
"activity"
data-activity-id=
"{{ a.pk }}"
>
<span
class=
"timeline-icon"
>
<i
class=
"{% if not a.finished %} icon-refresh icon-spin {% else %}icon-plus{% endif %}"
></i>
<i
class=
"{% if not a.finished %} icon-refresh icon-spin {% else %}icon-plus{% endif %}"
></i>
</span>
</span>
<strong>
{{ a.get_readable_name }}
</strong>
<strong>
{{ a.get_readable_name }}
</strong>
{{ a.started|date:"Y-m-d.
H:i" }}, {{ a.user }}
{{ a.started|date:"Y-m-d
H:i" }}, {{ a.user }}
{% if a.children.count > 0 %}
{% if a.children.count > 0 %}
<div
class=
"sub-timeline"
>
<div
class=
"sub-timeline"
>
{% for s in a.children.all %}
{% for s in a.children.all %}
<div
data-activity-id=
"{{ s.pk }}"
class=
"sub-activity
"
>
<div
data-activity-id=
"{{ s.pk }}"
class=
"sub-activity{% if s.has_failed %} sub-activity-failed{% endif %}
"
>
{{ s.get_readable_name }} -
{{ s.get_readable_name }} -
{% if s.finished %}
{% if s.finished %}
{{ s.finished|time:"H:i:s" }}
{{ s.finished|time:"H:i:s" }}
{% else %}
{% else %}
<i
class=
"icon-refresh icon-spin"
class=
"sub-activity-loading-icon"
></i>
<i
class=
"icon-refresh icon-spin"
class=
"sub-activity-loading-icon"
></i>
{% endif %}
{% endif %}
{% if s.has_failed %}
<div
class=
"label label-danger"
>
{% trans "failed" %}
</div>
{% endif %}
</div>
</div>
{% endfor %}
{% endfor %}
</div>
</div>
{% endif %}
{% endif %}
</div>
{% endfor %}
<div><span
class=
"timeline-icon timeline-warning"
><i
class=
"icon-remove"
></i></span>
<strong>
Removing
</strong>
2013-11-21 15:32
</div>
<div><span
class=
"timeline-icon timeline-warning"
><i
class=
"icon-pause"
></i></span>
<strong>
Suspending
</strong>
2013-09-21 15:32
</div>
<div><span
class=
"timeline-icon"
><i
class=
"icon-ellipsis-vertical"
></i></span>
<strong>
(now)
</strong></div>
<div><span
class=
"timeline-icon"
><i
class=
"icon-truck"
></i></span>
<strong>
Migrated to mega5
</strong>
2013-04-21 15:32, ABC123
</div>
<div><span
class=
"timeline-icon"
><i
class=
"icon-refresh"
></i></span>
<strong>
Forced reboot
</strong>
2013-04-21 15:32, ABC123
</div>
<div><span
class=
"timeline-icon"
><i
class=
"icon-plus"
></i></span>
<strong>
Created
</strong>
2013-04-21 15:32, ABC123
</div>
</div>
</div>
{% endfor %}
{% block extra_js %}
<script
src=
"{{ STATIC_URL }}dashboard/vm-details.js"
></script>
{% endblock %}
circle/dashboard/templates/dashboard/node-detail/activity.html
0 → 100644
View file @
db3c3c74
{% load i18n %}
<h3>
{% trans "Activity" %}
</h3>
<div
id=
"activity-timeline"
class=
"timeline"
>
{% include "dashboard/node-detail/_activity-timeline.html" %}
</div>
circle/dashboard/templates/dashboard/node-detail
-
home.html
→
circle/dashboard/templates/dashboard/node-detail
/
home.html
View file @
db3c3c74
File moved
circle/dashboard/templates/dashboard/node-detail
-
resources.html
→
circle/dashboard/templates/dashboard/node-detail
/
resources.html
View file @
db3c3c74
File moved
circle/dashboard/templates/dashboard/node-detail
-
vm.html
→
circle/dashboard/templates/dashboard/node-detail
/
vm.html
View file @
db3c3c74
File moved
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