chg: [website] query with same name

main
David Cruciani 2024-02-22 14:35:47 +01:00
parent e1ebd89f69
commit 5a27f3d25d
No known key found for this signature in database
GPG Key ID: 8690CDE1E3994B9B
2 changed files with 7 additions and 1 deletions

View File

@ -13,6 +13,8 @@ home_blueprint = Blueprint(
@home_blueprint.route("/")
def home():
if "query" in request.args:
return render_template("home.html", query=request.args.get("query"))
return render_template("home.html")
@home_blueprint.route("/home/<sid>", methods=["GET", "POST"])

View File

@ -11,7 +11,11 @@
<h2>{{query}}</h2>
</div>
<a style="float: right;" class="btn btn-primary" href="/">New query</a>
<div class="btn-group" style="float: right;" role="group" aria-label="Basic mixed styles example">
<a style="float: right;" class="btn btn-primary" href="/" title="Do a new query with no relation with this one">New query</a>
<a style="float: right;" class="btn btn-secondary" href="/?query={{query}}" title="New query with same name">Query</a>
</div>
<div class="card card-body">
<div class="row">