varia-library-website/library/templates/index.html

36 lines
831 B
HTML

{% extends "base.html" %}
{% block main %}
<div id="nav" class="container">
{% include 'menu.html' %}
</div>
<div id="bookshelf">
{% for id, pubinfo in publications.items() %}
<div class='book filter {{ pubinfo["Type"] }} {{ pubinfo["Year"] }} {{ pubinfo["License"] }}'>
<a href='{{ id }}'>
<table>
<tbody>
{%if pubinfo["Image"]%}
<tr>
<td colspan="2" class="tdimage">
<img src="{{ url_for('static', filename='images/image-{0}.jpg'.format(id))}}" alt="">
</td>
</tr>
{% endif %}
<tr>
<td>Author/Editor</td>
<td>{{ pubinfo["Author"] }}</td>
</tr>
<tr>
<td>Title</td>
<td>{{ pubinfo["Title"] }}</td>
</tr>
</tbody>
</table>
</a>
</div>
{% endfor%}
</div>
<script src="{{ url_for('static', filename='js/dropdown.js')}}"></script>
{% endblock %}