This is a reusable plain version the varia library website. You can host your own website of books using just a simple csv file
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

70 lines
1.8 KiB

{% extends "base.html" %}
{% block main %}
{% include 'user_authorization.html' %}
<div id="nav" class="menu">
<div class="dropdown">
<button><a href="/">All books</a></button>
</div>
{% if current_user.is_authenticated %}
<div class="dropdown">
<button><a href="/upload">Upload</a></button>
</div>
{% 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>
<tr>
<td>File</td>
<td><a href='files/{{fullpublication["Files"]}}'><p>{{ fullpublication["Files"] }}</p></a></td>
</tr>
</tbody>
</table>
</div>
{% endblock %}