Commit 5fbba357 authored by delanoe's avatar delanoe

[GRAPH] Page improved

- Graphs are in an ordered list
- Informations with start/end and number of nodes
- User can choose to compute with conditional or distributional distance
parent 26a1e53f
...@@ -18,23 +18,33 @@ ...@@ -18,23 +18,33 @@
<div class="container theme-showcase" role="main"> <div class="container theme-showcase" role="main">
<h2>My Graphs </h2> <h2>My Graphs </h2>
<ol>
{% for cooc in coocs %} {% for cooc in coocs %}
<div id="graph_{{cooc.id}}"> <div id="graph_{{cooc.id}}">
<div class="row"> <div class="row">
<div class="col-md-1 content"></div> <div class="col-md-1 content"></div>
<div class="col-md-5 content"> <div class="col-md-5 content">
<a href="/projects/{{project.id}}/corpora/{{corpus.id}}/explorer?cooc_id={{cooc.id}}"> <li>
{{cooc.id}} {{ cooc.name }} {{cooc.hyperdata}} Graph created at {{cooc.date}}
<ul>
( <!-- <li>{{cooc.id}}</li> --!>
<li>Start period: {{cooc.hyperdata.start}}</li>
<li>End period: {{cooc.hyperdata.end}}</li>
<li>Distances:
<ul>
<li><a href="/projects/{{project.id}}/corpora/{{corpus.id}}/explorer?cooc_id={{cooc.id}}&distance=conditional">Conditional</a></li>
<li><a href="/projects/{{project.id}}/corpora/{{corpus.id}}/explorer?cooc_id={{cooc.id}}&distance=distributional">Distributional</a></li>
</ul>
<li>Nodes:
{% for key, value in coocs_count.items %} {% for key, value in coocs_count.items %}
{% if key == cooc.id %} {% if key == cooc.id %}
{{value}} {{value}}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
nodes) </li>
</a> </ul>
</li>
</div> </div>
<div class="col-md-3 content"> <div class="col-md-3 content">
<a href="/projects/{{project.id}}/corpora/{{corpus.id}}/explorer?cooc_id={{cooc.id}}" <a href="/projects/{{project.id}}/corpora/{{corpus.id}}/explorer?cooc_id={{cooc.id}}"
...@@ -66,11 +76,6 @@ ...@@ -66,11 +76,6 @@
</div> </div>
</div> </div>
</li>
{% endfor %} {% endfor %}
</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