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

71 lines
1.8 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block main %}
2024-03-30 15:52:45 +01:00
{% include 'user_authorization.html' %}
<div id="nav" class="menu">
<div class="dropdown">
<button><a href="/">All books</a></button>
</div>
2024-03-30 20:23:24 +01:00
{% if current_user.is_authenticated %}
2024-03-30 15:52:45 +01:00
<div class="dropdown">
<button><a href="/upload">Upload</a></button>
</div>
2024-03-30 20:23:24 +01:00
{% endif %}
<div class="dropdown" style="visibility: hidden">
<button id="Year" class="dropbtn">Year</button>
</div>
</div>
<div id="publication">
<table>
<tbody>
{%if fullpublication["Image"]%}
<tr>
<td colspan="2" class="tdimage">
<img src="{{ url_for('static', filename='images/image-{0}.jpg'.format(publicationID))}}" alt="">
</td>
</tr>
{% endif %}
<tr>
<td>Title of publication</td>
<td>{{ fullpublication["Title"] }}</td>
</tr>
<tr>
<td>Author/Editor</td>
<td>{{ fullpublication["Author"] }}</td>
</tr>
<tr>
<td>Year</td>
<td>{{ fullpublication["Year"] }}</td>
</tr>
<tr>
<td>Fields</td>
<td>{{ fullpublication["Fields"] }}</td>
</tr>
<tr>
<td>Type of publication</td>
<td>{{ fullpublication["Type"] }}</td>
</tr>
<tr>
<td>Publishers</td>
<td>{{ fullpublication["Publishers"] }}</td>
</tr>
<tr>
<td>License</td>
<td>{{ fullpublication["License"] }}</td>
</tr>
<tr>
<td>Highlights</td>
<td><p>{{ fullpublication["Highlights"] }}</p></td>
</tr>
<tr>
<td>Comments</td>
<td><p>{{ fullpublication["Comments"] }}</p></td>
</tr>
2023-11-29 23:40:12 +01:00
<tr>
<td>File</td>
<td><a href='files/{{fullpublication["Files"]}}'><p>{{ fullpublication["Files"] }}</p></a></td>
</tr>
2023-11-29 23:07:19 +01:00
</tbody>
</table>
</div>
2024-03-30 15:52:45 +01:00
{% endblock %}