Browse Source

small fixed

main
crunk 2 months ago
parent
commit
5e48463403
  1. 5
      README.md
  2. 2
      library/static/css/style.css
  3. 2
      library/templates/menu.html
  4. 2
      library/templates/publication.html

5
README.md

@ -1,7 +1,7 @@
# csv-library-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
@ -24,7 +24,8 @@ Or run `make`.
## readme driven development
* add regular login instead of a secret key ✅
* 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
* remove varia library specific code ✅
* implement [openlibrary](https://openlibrary.org/) ISBN to book in libarary software

2
library/static/css/style.css

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

2
library/templates/menu.html

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

2
library/templates/publication.html

@ -5,9 +5,11 @@
<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>

Loading…
Cancel
Save