From aa2fd5c96d9f4a94a7cbace506a465082cd54bdf Mon Sep 17 00:00:00 2001 From: chee Date: Mon, 16 Nov 2020 21:37:29 +0000 Subject: [PATCH] whittle it down after --- app/config.py | 8 +++++--- app/static/abe-art-figure-on-squares-tttttt.jpg | 3 +++ app/static/style.css | 3 +++ app/templates/_piece.html | 16 ++++++++-------- app/templates/base.html | 4 +++- 5 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 app/static/abe-art-figure-on-squares-tttttt.jpg create mode 100644 app/static/style.css diff --git a/app/config.py b/app/config.py index 2de6cdf..16d60bc 100644 --- a/app/config.py +++ b/app/config.py @@ -1,8 +1,10 @@ import os basedir = os.path.abspath(os.path.dirname(__file__)) +from dotenv import load_dotenv +load_dotenv() class Config(object): - SECRET_KEY = os.environ.get('CC0_SECRET_KEY') - SQLALCHEMY_DATABASE_URI = os.environ.get("CC0_SQLALCHEMY_DATABASE_URI") or f"sqlite:///{os.path.join(basedir, 'app.db')}" - SQLALCHEMY_TRACK_MODIFICATIONS = False + SECRET_KEY = os.environ.get('CC0_SECRET_KEY') + SQLALCHEMY_DATABASE_URI = os.environ.get("CC0_SQLALCHEMY_DATABASE_URI") or f"sqlite:///{os.path.join(basedir, 'app.db')}" + SQLALCHEMY_TRACK_MODIFICATIONS = False diff --git a/app/static/abe-art-figure-on-squares-tttttt.jpg b/app/static/abe-art-figure-on-squares-tttttt.jpg new file mode 100644 index 0000000..a8c63d5 --- /dev/null +++ b/app/static/abe-art-figure-on-squares-tttttt.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87a9b08fb53575b585f27e523bb42815698e398fe3288e4b30f7911c364faadf +size 900574 diff --git a/app/static/style.css b/app/static/style.css new file mode 100644 index 0000000..6d473da --- /dev/null +++ b/app/static/style.css @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11757d172fa0869d98f34d8bff4959bc2b3a201e1962dccedbdf73cfccfcbec2 +size 165 diff --git a/app/templates/_piece.html b/app/templates/_piece.html index 396f1cc..213e331 100644 --- a/app/templates/_piece.html +++ b/app/templates/_piece.html @@ -1,4 +1,5 @@ -

+
+

{{piece.name}}

download @@ -27,10 +28,9 @@


To the extent possible under law, + href="{{collection.copyright_holder.website}}"> - {{collection.copyright_holder.legal_name}} - + {{collection.copyright_holder.legal_name}} has waived all copyright and related or neighboring rights to @@ -40,8 +40,8 @@

This work is published from: - {{collection.country}} + content="{{collection.copyright_holder.country_code or 'GB'}}" + about="{{collection.copyright_holder.country or 'United Kingdom'}}"> + {{collection.country or 'United Kingdom'}} . -
+

diff --git a/app/templates/base.html b/app/templates/base.html index ac1840d..4633468 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -12,7 +12,9 @@

public dump

{% endif %} {% if current_user.is_authenticated %}

- hi, {{current_user.legal_name}}! + hi, + {{current_user.legal_name}} + !

{% endif %}