Massive changes. Added long-polling support
[flowspy] / templates / application_list.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% block title %}{% trans "Application submitted" %}{% endblock %}
4 {% block content %}
5 <div align="center">
6 {% if pending %}
7 <h2>{% trans "Pending applications" %}</h2>
8 <table>
9 <tr><th>{% trans "Hostname" %}</th><th>{% trans "User" %}</th><th>{% trans "Memory" %}</th><th>{% trans "vCPUs" %}</th><th>{% trans "Network" %}</th><th>{% trans "Filed" %}</th></tr>
10 {% for app in pending %}
11 <tr><td><a href="{% url application-review app.pk %}">{{ app.hostname }}</a></td><td>{{ app.applicant }}</td><td>{{ app.memory }}</td><td>{{ app.vcpus }}</td><td>{{ app.network|default_if_none:"&mdash;" }}</td><td>{{ app.filed|date }}</td></tr>
12 {% endfor %}
13 </table>
14 {% endif %}
15
16 <h2>{% trans "Completed applications" %}</h2>
17 <table>
18 <tr><th>{% trans "Hostname" %}</th><th>{% trans "User" %}</th><th>{% trans "Memory" %}</th><th>{% trans "vCPUs" %}</th><th>{% trans "Network" %}</th><th>{% trans "Filed" %}</th></tr>
19 {% for app in completed %}
20 <tr><td><a href="{% url application-review app.pk %}">{{ app.hostname }}</a></td><td>{{ app.applicant }}</td><td>{{ app.memory }}</td><td>{{ app.vcpus }}</td><td>{{ app.network|default_if_none:"&mdash;" }}</td><td>{{ app.filed|date }}</td></tr>
21 {% endfor %}
22 </table>
23 </div>
24 {% endblock %}