use table on home page

This commit is contained in:
Edward Betts 2017-02-23 21:05:28 +00:00
parent ff4617196f
commit a901679c0f

View file

@ -1,15 +1,26 @@
{% include "head.html" %}
<h1>perma.pub</h1>
<ul>
<table class="table">
<thead>
<tr>
<th>item</th>
<th>type</th>
<th>user</th>
<th>date</th>
</tr>
</thead>
<tbody>
{% for doc in docs %}
<li>
<a href="{{ doc.url }}">{{ doc.title() }}</a>
by {{ doc.user.username }}
&mdash; created {{ doc.created | datetime }}
</li>
<tr>
<td><a href="{{ doc.url }}">{{ doc.title() }}</a></td>
<td>{{ doc.type }}</td>
<td>{{ doc.user.username }}</td>
<td>{{ doc.created | datetime }}</td>
</tr>
{% endfor %}
</ul>
</tbody>
</table>
<p>
<a href="{{ url_for('.new_sourcedoc') }}" class="btn btn-default">new source document</a>