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

58 lines
1.4 KiB
HTML
Raw Normal View History

2024-03-30 11:14:30 +01:00
{% extends "base.html" %}
{% block main %}
2023-12-01 15:58:33 +01:00
<nav id="nav" class="container">
{% include 'menu.html' %}
2023-12-01 15:58:33 +01:00
</nav>
2024-03-30 12:00:47 +01:00
<div id="auth_buttons">
{% if not current_user.is_authenticated %}
<div class="signin">
<a href="/login">
<input type="button" name="button" value="Sign in"></input>
</a>
</div>
<div class="signin">
<a href="/register">
<input type="button" name="button" value="Register"></input>
</a>
</div>
{% else %}
<div class="logout">
<a href="/logout">
<input type="button" name="button" value="Logout"></input>
</a>
</div>
{% endif %}
</div>
<div id="bookshelf">
{% for id, pubinfo in publications.items() %}
2023-07-14 21:16:30 +02:00
<div id="{{ id }}" 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>
2023-12-01 15:58:33 +01:00
<td class="author">Author/Editor:</td>
<td>{{ pubinfo["Author"] }}</td>
</tr>
<tr>
2023-12-01 15:58:33 +01:00
<td class="title">Title:</td>
<td>{{ pubinfo["Title"] }}</td>
</tr>
</tbody>
</table>
</a>
</div>
{% endfor%}
</div>
<script src="{{ url_for('static', filename='js/dropdown.js')}}"></script>
2023-07-12 21:09:22 +02:00
<script src="{{ url_for('static', filename='js/search.js')}}"></script>
{% endblock %}