Added query search display

pull/57/head
Mokaddem 2016-07-07 16:43:18 +02:00
parent 465244e1ce
commit e206d27f63
2 changed files with 2 additions and 2 deletions

View File

@ -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():

View File

@ -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>