Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CIRCLE / cloud

  • This project
    • Loading...
  • Sign in
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
Closed
Open
Issue #310 opened Sep 25, 2014 by Bach Dániel@bachdaniel 
  • Report abuse
  • New issue
Report abuse New issue

Show time_of_suspend and ram_size in vm-list

diff --git a/circle/dashboard/templates/dashboard/vm-list.html b/circle/dashboard/templates/dashboard/vm-list.html
index 96af7f4..e2a6515 100644
--- a/circle/dashboard/templates/dashboard/vm-list.html
+++ b/circle/dashboard/templates/dashboard/vm-list.html
@@ -72,6 +72,10 @@
                 {% trans "Lease" as t %}
                 {% include "dashboard/vm-list/header-link.html" with name=t sort="lease" %}
               </th>
+              <th data-sort="string" class="orderable sortable">
+                {% trans "Memory" as t %}
+                {% include "dashboard/vm-list/header-link.html" with name=t sort="memory" %}
+              </th>
               {% if user.is_superuser %}
                 <th data-sort="string" class="orderable sortable">
                   {% trans "IP address" as t %}
@@ -87,7 +91,7 @@
           <tr class="{% cycle 'odd' 'even' %}" data-vm-pk="{{ i.pk }}">
             <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="state">
+            <td class="state" style="white-space: nowrap;">
               <i class="fa fa-fw
                 {% if show_acts_in_progress and i.is_in_status_change %}
                   fa-spin fa-spinner
@@ -104,7 +108,10 @@
               {# include "dashboard/_display-name.html" with user=i.owner show_org=True #}
             </td>
             <td class="lease "data-sort-value="{{ i.lease.name }}">
-              {{ i.lease.name }}
+              <span title="{{ i.time_of_suspend|timeuntil }} | {{ i.time_of_delete|timeuntil }}">{{ i.lease.name }}</span>
+            </td>
+            <td class="memory "data-sort-value="{{ i.ram_size }}" style="white-space: nowrap;">
+              {{ i.ram_size }} MiB
             </td>
             {% if user.is_superuser %}
             <td class="ip_addr "data-sort-value="{{ i.ipv4 }}">
  • Bach Dániel @bachdaniel

    Reassigned to @kviktor

    Sep 26, 2014

    Reassigned to @kviktor

    Reassigned to @kviktor
    Toggle commit list
  • Bach Dániel @bachdaniel

    Status changed to closed by commit 83f7bd

    Oct 01, 2014

    Status changed to closed by commit 83f7bd

    Status changed to closed by commit 83f7bd
    Toggle commit list
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Assignee
Assign to
September
Milestone
September
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View labels
2
2 participants
Reference: circle/cloud#310