Add back button

This commit is contained in:
Stephan Porada 2019-11-05 14:23:45 +01:00
parent a288ce2ec3
commit f2024be050
2 changed files with 4 additions and 1 deletions

View File

@ -74,7 +74,8 @@ def corpus_analysis(corpus_id):
return redirect(url_for('corpora.corpus_analysis', corpus_id=corpus_id,
query=query, hits_per_page=hits_per_page,
context=context))
return render_template('corpora/corpus_analysis.html.j2', corpus=corpus,
return render_template('corpora/corpus_analysis.html.j2',
corpus_id=corpus_id,
form=form, dl_form=dl_form,
title='Corpus: {}'.format(corpus.title))

View File

@ -1,7 +1,9 @@
{% extends "full_width.html.j2" %}
{% block page_content %}
<div class="col s12 m3 l3 sticky">
<a class="waves-effect waves-light btn" href="{{ url_for('corpora.corpus', corpus_id=corpus_id) }}"><i class="material-icons left">arrow_back</i>Back to corpus overview</a>
<div class="card">
<form id="query_form" method="POST">
<div class="card-content">