Skip to content
Snippets Groups Projects
Commit 91a800f7 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Add analyse button in public corpus pages

parent 52fa23ff
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
<h1>{{ title }} </h1> <h1>{{ title }} </h1>
<div class="row"> <div class="row">
<div class="col s8 m9 l10"> <div class="col s8 m9 l10">
{% if not corpus.user == current_user %}
<a class="btn waves-effect waves-light" id="follow-corpus-request"> <a class="btn waves-effect waves-light" id="follow-corpus-request">
{% if current_user.is_following_corpus(corpus) %} {% if current_user.is_following_corpus(corpus) %}
<i class="material-icons left">add</i>Unfollow Corpus <i class="material-icons left">add</i>Unfollow Corpus
...@@ -18,6 +17,8 @@ ...@@ -18,6 +17,8 @@
<i class="material-icons left">add</i>Follow Corpus <i class="material-icons left">add</i>Follow Corpus
{% endif %} {% endif %}
</a> </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 %} {% endif %}
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment