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