Commit 61e60444f5b00a3a8c99aa9773bc4e3ac872b3af
1 parent
e39312f1
Exists in
master
and in
1 other branch
Pushing on dev
Showing
6 changed files
with
17 additions
and
2 deletions
Show diff stats
src/dashboard/views.py
31.4 KB
8.64 KB
2.27 KB
src/pyros/settings.py
... | ... | @@ -183,8 +183,12 @@ USE_L10N = True |
183 | 183 | USE_TZ = True |
184 | 184 | |
185 | 185 | |
186 | +# To find the media files {{ MEDIA_URL }} | |
187 | +MEDIA_URL = '/public/static/media/' | |
188 | + | |
189 | + | |
186 | 190 | # To find the static files in the app/static/ap/... folders |
187 | -STATIC_URL = '/static/' | |
191 | +STATIC_URL = '/public/static/' | |
188 | 192 | |
189 | 193 | # To find the static files in src/static/. Any local directory can be added to this list. |
190 | 194 | STATICFILES_DIRS = ( | ... | ... |
src/scheduler/templates/scheduler/current_schedule.html
... | ... | @@ -67,6 +67,7 @@ |
67 | 67 | class="table table-bordered table-hover table-striped tablesorter"> |
68 | 68 | <thead> |
69 | 69 | <tr> |
70 | + <th>State <i class="fa fa-sort"></i></th> | |
70 | 71 | <th>ID <i class="fa fa-sort"></i></th> |
71 | 72 | <th>Owner <i class="fa fa-sort"></i></th> |
72 | 73 | <th>Start <i class="fa fa-sort"></i></th> |
... | ... | @@ -80,8 +81,18 @@ |
80 | 81 | </thead> |
81 | 82 | <tbody> |
82 | 83 | <!-- sequence is a tuple (sequence, shs) --> |
84 | + {% load static %} | |
83 | 85 | {% for sequence in sequences %} |
84 | 86 | <tr> |
87 | + <td> | |
88 | + {% if sequence.processing = 1 %} | |
89 | + <img src="{% static "media/arrow_green.png" %}" alt="html5" height="30" width="30" style="margin-left:25%"/> | |
90 | + {% elif sequence.processing = 0 and sequence.status = "EXECUTED" %} | |
91 | + <img src="{% static "media/validate.jpg" %}" alt="html5" height="30" width="30" style="margin-left:25%"/> | |
92 | + {% else %} | |
93 | + <img src="{% static "media/error.png" %}" alt="{{sequence.processing}}" height="30" width="30" style="margin-left:25%"/> | |
94 | + {% endif %} | |
95 | + </td> | |
85 | 96 | <td>{{ sequence.0.id }}</td> |
86 | 97 | <td>{{ sequence.0.request.pyros_user.user.username }}</td> |
87 | 98 | <td>{{ sequence.1.tsp|jdtodate }}</td> | ... | ... |