add a footer
This commit is contained in:
parent
838e8f231e
commit
3e5956db63
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue