Add analyse button in public corpus pages

This commit is contained in:
Patrick Jentsch 2023-02-09 12:10:37 +01:00
parent 52fa23ff65
commit 91a800f7fd

View File

@ -10,7 +10,6 @@
<h1>{{ title }} </h1>
<div class="row">
<div class="col s8 m9 l10">
{% if not corpus.user == current_user %}
<a class="btn waves-effect waves-light" id="follow-corpus-request">
{% if current_user.is_following_corpus(corpus) %}
<i class="material-icons left">add</i>Unfollow Corpus
@ -18,6 +17,8 @@
<i class="material-icons left">add</i>Follow Corpus
{% endif %}
</a>
{% if corpus.status.name in ['BUILT', 'STARTING_ANALYSIS_SESSION', 'RUNNING_ANALYSIS_SESSION', 'CANCELING_ANALYSIS_SESSION'] and current_user.is_following_corpus(corpus) %}
<a class="btn waves-effect waves-light" href="{{ url_for('corpora.analyse_corpus', corpus_id=corpus.id) }}">Analyse</a>
{% endif %}
</div>
</div>