mirror of https://github.com/MISP/misp-modules
chg: [website] query with same name
parent
e1ebd89f69
commit
5a27f3d25d
|
@ -13,6 +13,8 @@ home_blueprint = Blueprint(
|
||||||
|
|
||||||
@home_blueprint.route("/")
|
@home_blueprint.route("/")
|
||||||
def home():
|
def home():
|
||||||
|
if "query" in request.args:
|
||||||
|
return render_template("home.html", query=request.args.get("query"))
|
||||||
return render_template("home.html")
|
return render_template("home.html")
|
||||||
|
|
||||||
@home_blueprint.route("/home/<sid>", methods=["GET", "POST"])
|
@home_blueprint.route("/home/<sid>", methods=["GET", "POST"])
|
||||||
|
|
|
@ -11,7 +11,11 @@
|
||||||
<h2>{{query}}</h2>
|
<h2>{{query}}</h2>
|
||||||
</div>
|
</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="card card-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
Loading…
Reference in New Issue