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