Remove dummy lists from Dashboard, show actual corpus and job list instead.

This commit is contained in:
Patrick Jentsch 2019-08-07 09:40:18 +02:00
parent 3c344bf023
commit ce051e8024

View File

@ -22,24 +22,14 @@
</div>
</div>
</li>
<li href="#!" class="collection-item avatar">
{% for corpus in current_user.corpora.all() %}
<li class="collection-item avatar">
<i class="material-icons circle">book</i>
<span class="title">Utopias</span>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia</p>
<a href="#!" class="secondary-content"><i class="material-icons">send</i></a>
</li>
<li href="#!" class="collection-item avatar">
<i class="material-icons circle">book</i>
<span class="title">Dystopias</span>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia</p>
<a href="#!" class="secondary-content"><i class="material-icons">send</i></a>
</li>
<li href="#!" class="collection-item avatar">
<i class="material-icons circle">book</i>
<span class="title">Mungo Park - Travel books</span>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia</p>
<span class="title">{{ corpus.title }}</span>
<p>{{ corpus.description }}</p>
<a href="#!" class="secondary-content"><i class="material-icons">send</i></a>
</li>
{% endfor %}
</ul>
</div>
@ -67,24 +57,22 @@
</div>
</div>
</li>
{% for job in current_user.jobs.all() %}
<li class="collection-item avatar">
<i class="material-icons circle">find_in_page</i>
<span class="new badge teal" data-badge-caption="">finished</span>
<span class="title">Harry Potter</span>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia</p>
</li>
<li class="collection-item avatar">
<i class="material-icons circle">find_in_page</i>
<span class="new badge amber" data-badge-caption="">queued</span>
<span class="title">Sprawl trilogy</span>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia</p>
</li>
<li class="collection-item avatar">
<i class="material-icons circle">format_textdirection_l_to_r</i>
<span class="new badge indigo" data-badge-caption="">running</span>
<span class="title">Bob the Builder</span>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia</p>
<i class="material-icons circle">
{% if job.service == 'nlp' %}
format_textdirection_l_to_r
{% elif job.service =='ocr' %}
find_in_page
{% else %}
help
{% endif %}
</i>
<span class="new badge teal" data-badge-caption="">{{ job.status }}</span>
<span class="title">{{ job.title }}</span>
<p>{{ job.description }}</p>
</li>
{% endfor %}
</ul>
</div>