Commit a85300dc authored by delanoe's avatar delanoe

[FIX] user can not recalculate if workflow is not finished yet.

parent e37af034
...@@ -97,6 +97,9 @@ ...@@ -97,6 +97,9 @@
</a> </a>
<!-- --> <!-- -->
{% for state in corpus.hyperdata.statuses %}
{% ifequal state.action "Workflow" %}
{% if state.complete %}
<button type="button" class="btn btn-default yopla" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="focus" <button type="button" class="btn btn-default yopla" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="focus"
data-content=" data-content="
<ul> <ul>
...@@ -111,6 +114,10 @@ ...@@ -111,6 +114,10 @@
<span class="glyphicon glyphicon-repeat" aria-hidden="true" <span class="glyphicon glyphicon-repeat" aria-hidden="true"
title='Recalculate ngram scores and similarities'></span> title='Recalculate ngram scores and similarities'></span>
</button> </button>
{% endif %}
{% endifequal %}
{% endfor %}
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="bottom" <button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="bottom"
data-content=" data-content="
<ul> <ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment