use table on home page
This commit is contained in:
parent
ff4617196f
commit
a901679c0f
|
@ -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 }}
|
||||
— 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>
|
||||
|
|
Loading…
Reference in a new issue