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