styling and docs

This commit is contained in:
Ville Rantanen
2018-02-18 10:46:44 +02:00
parent 43719a4811
commit 5000a881e7
4 changed files with 43 additions and 19 deletions

View File

@@ -34,6 +34,7 @@ def before_request():
g.shares = json.load(open(app.config['SHARES_FILE'],'rt'))
g.version = __FLEES_VERSION__
g.site_name = app.config['SITE_NAME']
g.max_zip_size = app.config['MAX_ZIP_SIZE']
@app.route("/")
def index():
@@ -51,7 +52,8 @@ def index():
'name': share['name'],
'expire': get_or_none(share,'expire'),
'upload': get_or_none(share,'upload'),
'password_set': password_set
'password_set': password_set,
'description': get_or_none(share,'description','')
})
return render_template("index.html", entries=public_shares)