From ce051e80241c4948ff1dcdf64da3524aaf42f08b Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 7 Aug 2019 09:40:18 +0200 Subject: [PATCH] Remove dummy lists from Dashboard, show actual corpus and job list instead. --- app/templates/main/dashboard.html.j2 | 60 +++++++++++----------------- 1 file changed, 24 insertions(+), 36 deletions(-) diff --git a/app/templates/main/dashboard.html.j2 b/app/templates/main/dashboard.html.j2 index 6064608d..6607078b 100644 --- a/app/templates/main/dashboard.html.j2 +++ b/app/templates/main/dashboard.html.j2 @@ -22,24 +22,14 @@ -
  • - book - Utopias -

    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia

    - send -
  • -
  • - book - Dystopias -

    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia

    - send -
  • -
  • - book - Mungo Park - Travel books -

    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia

    - send -
  • + {% for corpus in current_user.corpora.all() %} +
  • + book + {{ corpus.title }} +

    {{ corpus.description }}

    + send +
  • + {% endfor %} @@ -67,24 +57,22 @@ -
  • - find_in_page - finished - Harry Potter -

    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia

    -
  • -
  • - find_in_page - queued - Sprawl trilogy -

    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia

    -
  • -
  • - format_textdirection_l_to_r - running - Bob the Builder -

    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia

    -
  • + {% for job in current_user.jobs.all() %} +
  • + + {% if job.service == 'nlp' %} + format_textdirection_l_to_r + {% elif job.service =='ocr' %} + find_in_page + {% else %} + help + {% endif %} + + {{ job.status }} + {{ job.title }} +

    {{ job.description }}

    +
  • + {% endfor %}