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" %} {% include "head.html" %}
<h1>perma.pub</h1> <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 %} {% for doc in docs %}
<li> <tr>
<a href="{{ doc.url }}">{{ doc.title() }}</a> <td><a href="{{ doc.url }}">{{ doc.title() }}</a></td>
by {{ doc.user.username }} <td>{{ doc.type }}</td>
&mdash; created {{ doc.created | datetime }} <td>{{ doc.user.username }}</td>
</li> <td>{{ doc.created | datetime }}</td>
</tr>
{% endfor %} {% endfor %}
</ul> </tbody>
</table>
<p> <p>
<a href="{{ url_for('.new_sourcedoc') }}" class="btn btn-default">new source document</a> <a href="{{ url_for('.new_sourcedoc') }}" class="btn btn-default">new source document</a>