Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
83f7bd1e
authored
Oct 01, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue-310' into 'master'
Add memory to vm list Closes #310 See merge request !225
parents
250c4b3d
a1403945
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
circle/dashboard/static/dashboard/dashboard.css
+2
-1
circle/dashboard/templates/dashboard/vm-list.html
+12
-1
No files found.
circle/dashboard/static/dashboard/dashboard.css
View file @
83f7bd1e
...
@@ -1000,7 +1000,8 @@ textarea[name="new_members"] {
...
@@ -1000,7 +1000,8 @@ textarea[name="new_members"] {
max-width
:
100%
;
max-width
:
100%
;
}
}
#vm-list-table
tbody
td
:nth-child
(
3
)
{
#vm-list-table
td
.state
,
#vm-list-table
td
.memory
{
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
...
...
circle/dashboard/templates/dashboard/vm-list.html
View file @
83f7bd1e
...
@@ -72,6 +72,10 @@
...
@@ -72,6 +72,10 @@
{% trans "Lease" as t %}
{% trans "Lease" as t %}
{% include "dashboard/vm-list/header-link.html" with name=t sort="lease" %}
{% include "dashboard/vm-list/header-link.html" with name=t sort="lease" %}
</th>
</th>
<th
data-sort=
"string"
class=
"orderable sortable"
>
{% trans "Memory" as t %}
{% include "dashboard/vm-list/header-link.html" with name=t sort="ram_size" %}
</th>
{% if user.is_superuser %}
{% if user.is_superuser %}
<th
data-sort=
"string"
class=
"orderable sortable"
>
<th
data-sort=
"string"
class=
"orderable sortable"
>
{% trans "IP address" as t %}
{% trans "IP address" as t %}
...
@@ -86,7 +90,9 @@
...
@@ -86,7 +90,9 @@
{% for i in object_list %}
{% for i in object_list %}
<tr
class=
"{% cycle 'odd' 'even' %}"
data-vm-pk=
"{{ i.pk }}"
>
<tr
class=
"{% cycle 'odd' 'even' %}"
data-vm-pk=
"{{ i.pk }}"
>
<td
class=
"pk"
><div
id=
"vm-{{i.pk}}"
>
{{i.pk}}
</div>
</td>
<td
class=
"pk"
><div
id=
"vm-{{i.pk}}"
>
{{i.pk}}
</div>
</td>
<td
class=
"name"
><a
class=
"real-link"
href=
"{% url "
dashboard
.
views
.
detail
"
i
.
pk
%}"
>
{{ i.name }}
</a>
</td>
<td
class=
"name"
><a
class=
"real-link"
href=
"{% url "
dashboard
.
views
.
detail
"
i
.
pk
%}"
>
{{ i.name }}
</a>
</td>
<td
class=
"state"
>
<td
class=
"state"
>
<i
class=
"fa fa-fw
<i
class=
"fa fa-fw
{% if show_acts_in_progress and i.is_in_status_change %}
{% if show_acts_in_progress and i.is_in_status_change %}
...
@@ -104,7 +110,12 @@
...
@@ -104,7 +110,12 @@
{# include "dashboard/_display-name.html" with user=i.owner show_org=True #}
{# include "dashboard/_display-name.html" with user=i.owner show_org=True #}
</td>
</td>
<td
class=
"lease "
data-sort-value=
"{{ i.lease.name }}"
>
<td
class=
"lease "
data-sort-value=
"{{ i.lease.name }}"
>
<span
title=
"{{ i.time_of_suspend|timeuntil }} | {{ i.time_of_delete|timeuntil }}"
>
{{ i.lease.name }}
{{ i.lease.name }}
</span>
</td>
<td
class=
"memory "
data-sort-value=
"{{ i.ram_size }}"
>
{{ i.ram_size }} MiB
</td>
</td>
{% if user.is_superuser %}
{% if user.is_superuser %}
<td
class=
"ip_addr "
data-sort-value=
"{{ i.ipv4 }}"
>
<td
class=
"ip_addr "
data-sort-value=
"{{ i.ipv4 }}"
>
...
...
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