Commit a85300dc authored by delanoe's avatar delanoe

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

parent e37af034
...@@ -97,20 +97,27 @@ ...@@ -97,20 +97,27 @@
</a> </a>
<!-- --> <!-- -->
<button type="button" class="btn btn-default yopla" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="focus" {% for state in corpus.hyperdata.statuses %}
data-content=" {% ifequal state.action "Workflow" %}
<ul> {% if state.complete %}
<li <button type="button" class="btn btn-default yopla" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="focus"
onclick=&quot; data-content="
garganrest.metrics.update({{corpus.id}}, function(){alert('The corpus ({{corpus.name|escapejs}}) was updated')}); <ul>
&quot;> <li
<a href='#'>Recalculate ngram metrics</a> <br/> (can take a little while) onclick=&quot;
</li> garganrest.metrics.update({{corpus.id}}, function(){alert('The corpus ({{corpus.name|escapejs}}) was updated')});
</ul> &quot;>
"> <a href='#'>Recalculate ngram metrics</a> <br/> (can take a little while)
<span class="glyphicon glyphicon-repeat" aria-hidden="true" </li>
title='Recalculate ngram scores and similarities'></span> </ul>
</button> ">
<span class="glyphicon glyphicon-repeat" aria-hidden="true"
title='Recalculate ngram scores and similarities'></span>
</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