Commit e91c3ca8 authored by delanoe's avatar delanoe

[CSS] Icones alignement + bar progression

parent 14ce4cff
...@@ -79,11 +79,15 @@ ...@@ -79,11 +79,15 @@
<div id="project_{{project.id}}" class="row"> <div id="project_{{project.id}}" class="row">
<h3> <h3>
<div class="col-md-5 content">
<a <a
href="/projects/{{ project.id }}"> href="/projects/{{ project.id }}">
<span class="glyphicon glyphicon-book" aria-hidden="true"></span> <span class="glyphicon glyphicon-book" aria-hidden="true"></span>
{{ project.name }} {{ project.name }}
</a> </a>
</div>
<div class="col-md-3 content">
<a href="/projects/{{project.id}}" > <a href="/projects/{{project.id}}" >
<button type="button" class="btn btn-default" aria-label="Left Align"> <button type="button" class="btn btn-default" aria-label="Left Align">
<span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> <span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span>
...@@ -99,12 +103,13 @@ ...@@ -99,12 +103,13 @@
<li onclick=&quot; <li onclick=&quot;
garganrest.nodes.delete({{project.id}}, function(){$('#project_'+{{project.id}}).remove()}); garganrest.nodes.delete({{project.id}}, function(){$('#project_'+{{project.id}}).remove()});
$(this).parent().parent().remove(); $(this).parent().parent().remove();
&quot;><a href=&quot;#&quot;>Delete</a></li> &quot;><a href=&quot;#&quot;>Delete</a>
</li>
</ul> </ul>
"> ">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> <span class="glyphicon glyphicon-trash pull-right" aria-hidden="true"></span>
</button> </button>
</li> </div>
{% if common_users %} {% if common_users %}
<!-- <a style="cursor:pointer;"><img class="share_button" data-id="{{ project.id }}" title="Share it!" width="20px" src="{% static "img/share.png" %}"></img></a> --!> <!-- <a style="cursor:pointer;"><img class="share_button" data-id="{{ project.id }}" title="Share it!" width="20px" src="{% static "img/share.png" %}"></img></a> --!>
{% endif %} {% endif %}
......
...@@ -73,50 +73,53 @@ ...@@ -73,50 +73,53 @@
{% if list_corpora %} {% if list_corpora %}
{% for key, corpora in list_corpora.items %} {% for key, corpora in list_corpora.items %}
<h2> <h2>
<div class="row">
<span class="glyphicon glyphicon-cd" aria-hidden="true"></span> <span class="glyphicon glyphicon-cd" aria-hidden="true"></span>
{{ key }} {{ key }}
</h2> </h2>
{% for corpus in corpora %} {% for corpus in corpora %}
<div id="corpus_{{corpus.id}}"> <div id="corpus_{{corpus.id}}">
{% ifequal corpus.processing 1 %} <div class="row">
{{corpus.name}}:
<img width="20px" src="{% static "js/libs/img2/loading-bar.gif" %}">
Processing, drink a cup of tea, and refresh the page :)
{% else %}
<h4> <h4>
<div class="col-md-5 content">
<a href="/projects/{{project.id}}/corpora/{{corpus.id}}"> <a href="/projects/{{project.id}}/corpora/{{corpus.id}}">
<span class="glyphicon glyphicon-file" aria-hidden="true"></span> <span class="glyphicon glyphicon-file" aria-hidden="true"></span>
{{corpus.name}}, {{ corpus.count }} documents {{ corpus.status_message }} {{corpus.name}}, {{ corpus.count }} documents {{ corpus.status_message }}
</a> </a>
</div>
<div class="col-md-2 content">
<a href="/projects/{{project.id}}/corpora/{{corpus.id}}"> <a href="/projects/{{project.id}}/corpora/{{corpus.id}}">
<button type="button" class="btn btn-default" aria-label="Left Align"> <button type="button" class="btn btn-default" aria-label="Left Align">
<span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> <span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span>
</button> </button>
</a> </a>
{% endifequal %}
<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>
<!--
<li>Rename</li>
<li>Add new documents</li>
--!>
<li <li
onclick=&quot; onclick=&quot;
garganrest.nodes.delete({{corpus.id}}, function(){$('#corpus_'+{{corpus.id}}).remove()}); garganrest.nodes.delete({{corpus.id}}, function(){$('#corpus_'+{{corpus.id}}).remove()});
$(this).parent().parent().remove(); $(this).parent().parent().remove();
&quot;> &quot;>
<a href=&quot;#&quot;>I want to delete this</a> <a href=&quot;#&quot;>Delete this</a>
</li> </li>
</ul> </ul>
"> ">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
</button> </button>
</h4> </div>
<p> <div class="col-md-5 content">
{% for state in corpus.hyperdata.statuses %}
{% ifequal state.action "ngrams_extraction" %}
{% if state.complete %}
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
{% else %}
{% if state.error %}
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
{% else %}
<div class="progress"> <div class="progress">
{% for state in corpus.hyperdata.statuses %} {% for state in corpus.hyperdata.statuses %}
{% ifequal state.action "parsing" %} {% ifequal state.action "parsing" %}
...@@ -162,56 +165,18 @@ ...@@ -162,56 +165,18 @@
{% endfor %} {% endfor %}
</div> </div>
</p>
</div>
{% endfor %}
{% endfor %}
{% endif %} {% endif %}
{% if list_corporax %}
<div class="col-md-4">
<h3>
<a href="/projects/{{project.id}}/corpora/{{corpus.id}}">{{corpus.name}}</a>
</h3>
<h4>
{{ corpus.count }} documents
</h4>
<h5>Activity:</h5>
<div class="chart" data-percent="73">73%</div>
</div>
{% endif %} {% endif %}
{% endifequal %}
{% if whitelists %}
<h2>Lists of Ngrams</h2>
<h3>White Lists</h3>
<ul>
{% for list in whitelists %}
<li>{{list.name }}</li>
{% endfor %} {% endfor %}
</ul> </div>
{% endif %} </h4>
</div>
{% if blacklists %} </div>
<h3>Black Lists</h3>
<ul>
{% for list in blacklists %}
<li>{{list.name}}</li>
{% endfor %} {% endfor %}
</ul>
{% endif %}
{% if cooclists %}
<h2>Results (graphs)</h2>
<h3>Cooccurrences Lists</h2>
<ul>
{% for list in cooclists %}
<li> {{list.name }}
</ul>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div>
<!-- Modal --> <!-- Modal -->
<div class="modal fade" id="stack1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="stack1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
......
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