From 63499d6f0ee7bfe156830e3eaf72bbe9f8f0321b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 10 Dec 2018 22:08:17 +0000 Subject: [PATCH] Handle urls poiting directly to a specific maintainer --- app/app.py | 8 ++++++-- app/templates/maintainer.html | 8 +++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/app/app.py b/app/app.py index 00f33cf..83e11e1 100644 --- a/app/app.py +++ b/app/app.py @@ -156,7 +156,11 @@ def appsobservatory_unlisted(): return render_template("unlistedapps.html", apps=apps) @main.route('/app_maintainer_dash') -def app_maintainer_dash(): +@main.route('/app_maintainer_dash/') +def app_maintainer_dash(maintainer=None): + + if maintainer: + maintainer = maintainer.lower().replace(" ", "") maintainers = set() apps = App.query.all() @@ -175,5 +179,5 @@ def app_maintainer_dash(): maintainers = sorted(maintainers, key=lambda m: m.lower()) apps = sorted(apps, key=lambda app: app.name.lower()) - return render_template("maintainer.html", maintainers=maintainers, apps=apps) + return render_template("maintainer.html", maintainers=maintainers, apps=apps, maintainer=maintainer) diff --git a/app/templates/maintainer.html b/app/templates/maintainer.html index 4287f91..e3d24cf 100644 --- a/app/templates/maintainer.html +++ b/app/templates/maintainer.html @@ -3,6 +3,7 @@
+Active maintainers :