From 61e60444f5b00a3a8c99aa9773bc4e3ac872b3af Mon Sep 17 00:00:00 2001 From: Jeremy Date: Thu, 27 Oct 2016 12:24:01 +0200 Subject: [PATCH] Pushing on dev --- src/dashboard/views.py | 2 +- src/misc/static/media/arrow_green.png | Bin 0 -> 32140 bytes src/misc/static/media/error.png | Bin 0 -> 8843 bytes src/misc/static/media/validate.jpg | Bin 0 -> 2320 bytes src/pyros/settings.py | 6 +++++- src/scheduler/templates/scheduler/current_schedule.html | 11 +++++++++++ 6 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 src/misc/static/media/arrow_green.png create mode 100644 src/misc/static/media/error.png create mode 100644 src/misc/static/media/validate.jpg diff --git a/src/dashboard/views.py b/src/dashboard/views.py index f6bd5e9..6d379ed 100644 --- a/src/dashboard/views.py +++ b/src/dashboard/views.py @@ -35,7 +35,7 @@ def devices(request): @login_required def system(request): return render(request, 'dashboard/system.html') - + @login_required def system_retrieve_logs(request): diff --git a/src/misc/static/media/arrow_green.png b/src/misc/static/media/arrow_green.png new file mode 100644 index 0000000..20f2c17 Binary files /dev/null and b/src/misc/static/media/arrow_green.png differ diff --git a/src/misc/static/media/error.png b/src/misc/static/media/error.png new file mode 100644 index 0000000..56ef806 Binary files /dev/null and b/src/misc/static/media/error.png differ diff --git a/src/misc/static/media/validate.jpg b/src/misc/static/media/validate.jpg new file mode 100644 index 0000000..95ac751 Binary files /dev/null and b/src/misc/static/media/validate.jpg differ diff --git a/src/pyros/settings.py b/src/pyros/settings.py index 989e0f2..13ac68f 100644 --- a/src/pyros/settings.py +++ b/src/pyros/settings.py @@ -183,8 +183,12 @@ USE_L10N = True USE_TZ = True +# To find the media files {{ MEDIA_URL }} +MEDIA_URL = '/public/static/media/' + + # To find the static files in the app/static/ap/... folders -STATIC_URL = '/static/' +STATIC_URL = '/public/static/' # To find the static files in src/static/. Any local directory can be added to this list. STATICFILES_DIRS = ( diff --git a/src/scheduler/templates/scheduler/current_schedule.html b/src/scheduler/templates/scheduler/current_schedule.html index b2781cb..c666253 100644 --- a/src/scheduler/templates/scheduler/current_schedule.html +++ b/src/scheduler/templates/scheduler/current_schedule.html @@ -67,6 +67,7 @@ class="table table-bordered table-hover table-striped tablesorter"> + State ID Owner Start @@ -80,8 +81,18 @@ + {% load static %} {% for sequence in sequences %} + + {% if sequence.processing = 1 %} + html5 + {% elif sequence.processing = 0 and sequence.status = "EXECUTED" %} + html5 + {% else %} + {{sequence.processing}} + {% endif %} + {{ sequence.0.id }} {{ sequence.0.request.pyros_user.user.username }} {{ sequence.1.tsp|jdtodate }} -- libgit2 0.21.2