summaryrefslogtreecommitdiff
path: root/horizon/horizon/dashboards/nova/templates/nova/images/_list.html
diff options
context:
space:
mode:
Diffstat (limited to 'horizon/horizon/dashboards/nova/templates/nova/images/_list.html')
-rw-r--r--horizon/horizon/dashboards/nova/templates/nova/images/_list.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/horizon/horizon/dashboards/nova/templates/nova/images/_list.html b/horizon/horizon/dashboards/nova/templates/nova/images/_list.html
new file mode 100644
index 00000000..b0f25a8d
--- /dev/null
+++ b/horizon/horizon/dashboards/nova/templates/nova/images/_list.html
@@ -0,0 +1,29 @@
+{%load i18n%}
+{% load parse_date %}
+<table id="images" class="wide">
+ <tr>
+ <th>{%trans "ID"%}</th>
+ <th>{%trans "Name"%}</th>
+ <th>{%trans "Created"%}</th>
+ <th>{%trans "Updated"%}</th>
+ <th colspan="2">{%trans "Status"%}</th>
+ </tr>
+ {% for image in images %}
+ <tr class="{% cycle 'odd' 'even' %}">
+ <td>{{image.id}}</td>
+ <td>{{image.name}}</td>
+ <td>{{image.created_at|parse_date}}</td>
+ <td>{{image.updated_at|parse_date}}</td>
+ <td>{{image.status|capfirst}}</td>
+ <td id="actions">
+ <ul>
+ {% if image.owner == request.user.username %}
+ <li class="form">{% include "nova/images/_delete.html" with form=delete_form %}</li>
+ <li><a href="{% url horizon:nova:images:update image.id %}">{%trans "Edit"%}</a></li>
+ {% endif %}
+ <li><a id="launch_{{image.id}}" class="launch" href="{% url horizon:nova:images:launch image.id %}">{%trans "Launch"%}</a></li>
+ </ul>
+ </td>
+ </tr>
+ {% endfor %}
+</table>