mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
Added query search display
This commit is contained in:
parent
465244e1ce
commit
e206d27f63
2 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ def search():
|
|||
c.append(content[0:content_range])
|
||||
paste_date.append(paste._get_p_date())
|
||||
paste_size.append(paste._get_p_size())
|
||||
return render_template("search.html", r=r, c=c, paste_date=paste_date, paste_size=paste_size, char_to_display=max_preview_modal)
|
||||
return render_template("search.html", r=r, c=c, query=request.form['query'], paste_date=paste_date, paste_size=paste_size, char_to_display=max_preview_modal)
|
||||
|
||||
@app.route("/")
|
||||
def index():
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
</br>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<i class="glyphicon glyphicon-search"></i> {{ r|length }} Results
|
||||
<i class="glyphicon glyphicon-search"></i> {{ r|length }} Results for "<strong>{{ query }}</strong>"
|
||||
<div class="pull-right">
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue