switch workspace routes and templates to Flask and Jinja

This commit is contained in:
dandds
2018-08-01 13:15:07 -04:00
committed by richard-dds
parent 0976aed778
commit 3a53fc122d
8 changed files with 86 additions and 35 deletions

31
templates/workspaces.html Normal file
View File

@@ -0,0 +1,31 @@
{% extends "base.html" %}
{% block content %}
<div class='col'>
<table>
<thead>
<tr>
<th>Workspace Name</th>
<th>Task Order</th>
<th>Users</th>
</tr>
</thead>
<tbody>
{% for w in workspaces %}
<tr>
<td>
<a class='icon-link icon-link--large' href="/workspaces/{{w['task_order']['number']}}/projects">{{ w['name'] }}</a><br>
</td>
<td>
#{{ w['task_order']['number'] }}
</td>
<td>
<span class="label">{{ w['user_count'] }}</span><span class='h6'>Users</span>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}