Commit fef2a278 authored by delanoe's avatar delanoe

[FIX] My graph view wait for graph if still running.

parent fafc5d3a
...@@ -27,10 +27,15 @@ ...@@ -27,10 +27,15 @@
<div class="col-md-5 content"> <div class="col-md-5 content">
<li> <li>
Graph created at {{cooc.date}} Graph created at {{cooc.date}}
{% for key, value in coocs_count.items %}
{% if key == cooc.id %}
{% if value > 0 %}
with {{ value }} nodes :
<ul> <ul>
<!-- <li>{{cooc.id}}</li> --!> <!-- <li>{{cooc.id}}</li> --!>
<li>Start period: {{cooc.hyperdata.start}}</li> <li>Start period: {% if not cooc.hyperdata.start %} begin of corpus {% else %} {{cooc.hyperdata.start}} {% endif %} </li>
<li>End period: {{cooc.hyperdata.end}}</li> <li>End period: {% if not cooc.hyperdata.end %} end of corpus {% else %} {{cooc.hyperdata.end}} {% endif %} </li>
<li>Distances: <li>Distances:
<ul> <ul>
<li> <span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> <li> <span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span>
...@@ -46,14 +51,14 @@ ...@@ -46,14 +51,14 @@
or <a href="/projects/{{project.id}}/corpora/{{corpus.id}}/explorer?cooc_id={{cooc.id}}&distance=distributional&bridgeness=20">20</a> or <a href="/projects/{{project.id}}/corpora/{{corpus.id}}/explorer?cooc_id={{cooc.id}}&distance=distributional&bridgeness=20">20</a>
</li> </li>
</ul> </ul>
<li>Nodes: </ul>
{% for key, value in coocs_count.items %}
{% if key == cooc.id %} {% else %}
{{value}} Still computing, waite a while please.
{% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</li>
</ul>
</li> </li>
</div> </div>
<div class="col-md-3 content"> <div class="col-md-3 content">
......
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