Commit 61e60444f5b00a3a8c99aa9773bc4e3ac872b3af

Authored by Jeremy
1 parent e39312f1
Exists in master and in 1 other branch dev

Pushing on dev

src/dashboard/views.py
... ... @@ -35,7 +35,7 @@ def devices(request):
35 35 @login_required
36 36 def system(request):
37 37 return render(request, 'dashboard/system.html')
38   -
  38 +
39 39  
40 40 @login_required
41 41 def system_retrieve_logs(request):
... ...
src/misc/static/media/arrow_green.png 0 โ†’ 100644

31.4 KB

src/misc/static/media/error.png 0 โ†’ 100644

8.64 KB

src/misc/static/media/validate.jpg 0 โ†’ 100644

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>
... ...