diff options
author | Frederick Muriuki Muriithi | 2024-09-23 14:10:17 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-23 14:10:17 -0500 |
commit | 3bec3b312a1e235247f1431d4351db5efe7a785d (patch) | |
tree | cd93e561d43e35e9389625220012b35094d900d1 /uploader/base_routes.py | |
parent | 27eec3300eddbc17214b3ff3ffbd8bea867db401 (diff) | |
download | gn-uploader-3bec3b312a1e235247f1431d4351db5efe7a785d.tar.gz |
UI: Indicate currently active menu.
Diffstat (limited to 'uploader/base_routes.py')
-rw-r--r-- | uploader/base_routes.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/uploader/base_routes.py b/uploader/base_routes.py index a20b7ff..742a254 100644 --- a/uploader/base_routes.py +++ b/uploader/base_routes.py @@ -2,15 +2,15 @@ import os from urllib.parse import urljoin -from flask import ( - Blueprint, - render_template, - current_app as app, - send_from_directory) +from flask import (Blueprint, + current_app as app, + send_from_directory) +from uploader.ui import make_template_renderer from uploader.oauth2.client import user_logged_in base = Blueprint("base", __name__) +render_template = make_template_renderer("home") @base.route("/favicon.ico", methods=["GET"]) |