Skip to content

Commit

Permalink
chg: [website] query with same name
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidCruciani committed Feb 22, 2024
1 parent e1ebd89 commit 5a27f3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions website/app/home.py
Expand Up @@ -13,6 +13,8 @@

@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"])
Expand Down
6 changes: 5 additions & 1 deletion website/app/templates/query.html
Expand Up @@ -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">
Expand Down

0 comments on commit 5a27f3d

Please sign in to comment.