small fixed

This commit is contained in:
crunk 2024-03-30 20:23:24 +01:00
parent f393f7389f
commit 5e48463403
4 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# csv-library-website # csv-library-website
> Work in progress: this is a simple flask application that turns a csv file into a website. > Work in progress: this is a simple flask application that turns a csv file into a website.
> originally used to show books like in the [Varia Library Website](https://library.varia.zone/).. but can me used for any collection described in the csv file > originally used to show books like in the [Varia Library Website](https://library.varia.zone/).. but it can be used for any collection described in the csv file
## Hacking ## Hacking
@ -24,7 +24,8 @@ Or run `make`.
## readme driven development ## readme driven development
* add regular login instead of a secret key ✅ * add regular login instead of a secret key ✅
* have a settings file for the application ✅ * have a settings file for the application ✅
* downloadable pdfs * downloadable pdfs ✅
* uploadable pdfs
* upon boot check for images of the book otherwise extract front page of pdfs * upon boot check for images of the book otherwise extract front page of pdfs
* remove varia library specific code ✅ * remove varia library specific code ✅
* implement [openlibrary](https://openlibrary.org/) ISBN to book in libarary software * implement [openlibrary](https://openlibrary.org/) ISBN to book in libarary software

View File

@ -48,6 +48,7 @@ html, body {
} }
#publication { #publication {
margin-bottom: 3em;
margin-top: 3em; margin-top: 3em;
margin-left: 1em; margin-left: 1em;
} }
@ -64,7 +65,6 @@ tr {
} }
td { td {
margin:0;
padding: 0.5em; padding: 0.5em;
min-width: auto; min-width: auto;
max-width: 60%; max-width: 60%;

View File

@ -3,9 +3,11 @@
<div class="dropdown"> <div class="dropdown">
<button onclick="filterSelection('all')" class="dropbtn">Reset search</button> <button onclick="filterSelection('all')" class="dropbtn">Reset search</button>
</div> </div>
{% if current_user.is_authenticated %}
<div class="dropdown"> <div class="dropdown">
<button class="dropbtn"><a href="/upload">Upload</a></button> <button class="dropbtn"><a href="/upload">Upload</a></button>
</div> </div>
{% endif %}
<div class="dropdown"> <div class="dropdown">
<button id="PubType" class="dropbtn">Type</button> <button id="PubType" class="dropbtn">Type</button>
<div class="dropdown-content"> <div class="dropdown-content">

View File

@ -5,9 +5,11 @@
<div class="dropdown"> <div class="dropdown">
<button><a href="/">All books</a></button> <button><a href="/">All books</a></button>
</div> </div>
{% if current_user.is_authenticated %}
<div class="dropdown"> <div class="dropdown">
<button><a href="/upload">Upload</a></button> <button><a href="/upload">Upload</a></button>
</div> </div>
{% endif %}
<div class="dropdown" style="visibility: hidden"> <div class="dropdown" style="visibility: hidden">
<button id="Year" class="dropbtn">Year</button> <button id="Year" class="dropbtn">Year</button>
</div> </div>