add a footer

This commit is contained in:
codl 2017-08-09 11:43:16 +02:00
parent 838e8f231e
commit 3e5956db63
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
3 changed files with 25 additions and 1 deletions

View File

@ -8,6 +8,7 @@ from app import app, db, sentry
import tasks
from zipfile import BadZipFile
from twitter import TwitterError
import version
@app.before_request
def load_viewer():
@ -22,6 +23,10 @@ def load_viewer():
'service': g.viewer.account.service
})
@app.context_processor
def inject_version():
return dict(version=version.version)
@app.after_request
def touch_viewer(resp):
if g.viewer:

View File

@ -8,7 +8,7 @@ body {
box-sizing: border-box;
}
body > section, body > header {
body > section, body > header, body > footer {
max-width: 45rem;
margin-left: auto;
margin-right: auto;
@ -113,3 +113,15 @@ form {
label {
display: inline-block;
}
footer {
text-align: center;
color: #555;
font-size: 0.9rem;
margin-top: 5rem;
margin-bottom: 5rem;
}
footer a {
color: inherit;
}

View File

@ -22,5 +22,12 @@
</h1>
</header>
{% block body %}{% endblock %}
<footer>
Forget {{version or "dev"}}
-
A <a href="https://twitter.com/codl">codl</a> joint
-
<a href="https://github.com/codl/forget">Code on Github</a>
</footer>
</body>
</html>