From 91a800f7fd8970fd3b46eff485fe3f377d78c5c3 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Thu, 9 Feb 2023 12:10:37 +0100 Subject: [PATCH] Add analyse button in public corpus pages --- app/templates/corpora/corpus_public.html.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/templates/corpora/corpus_public.html.j2 b/app/templates/corpora/corpus_public.html.j2 index 86356b87..f35c66e6 100644 --- a/app/templates/corpora/corpus_public.html.j2 +++ b/app/templates/corpora/corpus_public.html.j2 @@ -10,7 +10,6 @@

{{ title }}

- {% if not corpus.user == current_user %} {% if current_user.is_following_corpus(corpus) %} addUnfollow Corpus @@ -18,6 +17,8 @@ addFollow Corpus {% endif %} + {% if corpus.status.name in ['BUILT', 'STARTING_ANALYSIS_SESSION', 'RUNNING_ANALYSIS_SESSION', 'CANCELING_ANALYSIS_SESSION'] and current_user.is_following_corpus(corpus) %} + Analyse {% endif %}