From 75d2e46578d1ba03d10e2ced0132e59e60aee968 Mon Sep 17 00:00:00 2001 From: Andrew Simonson Date: Mon, 15 Apr 2024 08:31:49 -0500 Subject: [PATCH] url UX(?) improvement the no argument version of /hotspots should include the legend because it's expected to be used as a dashboard :) --- src/app.py | 4 ++-- src/static/json/projects.json | 2 +- src/templates/header.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app.py b/src/app.py index 6aca496..8dd5587 100644 --- a/src/app.py +++ b/src/app.py @@ -57,8 +57,8 @@ def resume(): @app.route("/hotspots") def hotspotsRIT(): url = HotspotsURL - if flask.request.args.get("legend") == "true": - url += "?legend=true" + if flask.request.args.get("legend") == "false": + url += "?legend=false" pagevars = { "template": "iframe.html", "title": f"Hotspots @ RIT", diff --git a/src/static/json/projects.json b/src/static/json/projects.json index f35e115..74a1471 100644 --- a/src/static/json/projects.json +++ b/src/static/json/projects.json @@ -9,7 +9,7 @@ "github", "https://github.com/asimonson1125/hotspotsrit", "git repo" ], [ - "globe", "https://asimonson.com/hotspots?legend=true", "demo" + "globe", "https://asimonson.com/hotspots", "demo" ] ] }, diff --git a/src/templates/header.html b/src/templates/header.html index 6d76ec5..05f85eb 100644 --- a/src/templates/header.html +++ b/src/templates/header.html @@ -61,7 +61,7 @@ {% block header %} - +