Skip to content

Commit

Permalink
whittle it down after
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Nov 16, 2020
1 parent 8f79bbe commit aa2fd5c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 12 deletions.
8 changes: 5 additions & 3 deletions 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
3 changes: 3 additions & 0 deletions app/static/abe-art-figure-on-squares-tttttt.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/static/style.css
Git LFS file not shown
16 changes: 8 additions & 8 deletions app/templates/_piece.html
@@ -1,4 +1,5 @@
<h3>
<article class="piece">
<h3>
<a href="/{{piece.collection.copyright_holder.username}}/{{piece.collection.slug}}/{{piece.slug}}">{{piece.name}}</a>
</h3>
<a href="{{piece.url}}" download>download</a>
Expand Down Expand Up @@ -27,10 +28,9 @@ <h3>
<br />
To the extent possible under law,
<a rel="dct:publisher"
href="https://cc0.snoot.club">
href="{{collection.copyright_holder.website}}">
<span property="dct:title">
{{collection.copyright_holder.legal_name}}
</span>
{{collection.copyright_holder.legal_name}}</span>
</a>
has waived all copyright and related or neighboring rights to

Expand All @@ -40,8 +40,8 @@ <h3>
This work is published from:
<span property="vcard:Country"
datatype="dct:ISO3166"
content="{{collection.country_code}}"
about="{{collection.country}}">
{{collection.country}}
content="{{collection.copyright_holder.country_code or 'GB'}}"
about="{{collection.copyright_holder.country or 'United Kingdom'}}">
{{collection.country or 'United Kingdom'}}
</span>.
<hr>
</article>
4 changes: 3 additions & 1 deletion app/templates/base.html
Expand Up @@ -12,7 +12,9 @@ <h1>public dump</h1>
{% endif %}
{% if current_user.is_authenticated %}
<p class="hello">
hi, <span class="hello_name">{{current_user.legal_name}}</span>!
hi, <a href="/{{current_user.username}}" class="hello_name">
{{current_user.legal_name}}
</a>!
</p>
{% endif %}
<nav>
Expand Down

0 comments on commit aa2fd5c

Please sign in to comment.