broadfield-dev commited on
Commit
6cec40e
·
verified ·
1 Parent(s): 5a08c25

Update templates/results_partial.html

Browse files
Files changed (1) hide show
  1. templates/results_partial.html +14 -2
templates/results_partial.html CHANGED
@@ -25,8 +25,20 @@
25
  <td class="p-4">{{ part.parent_path }}</td>
26
  <td class="p-4">{{ part.level }}</td>
27
  <td class="p-4">Lines {{ part.location[0] }} to {{ part.location[1] }}</td>
28
- <td class="p-4">{{ part.vector[6] | int == 0 ? '-' : ['Input', 'Assigned', 'Returned'][part.vector[6] - 1] or '-' }}</td>
29
- <td class="p-4">{{ part.vector[7] | float | round(3) == 0 ? '-' : part.vector[7] | float | round(3) }}</td>
 
 
 
 
 
 
 
 
 
 
 
 
30
  <td class="p-4">[{{ part.vector|join(', ') }}]</td>
31
  <td class="p-4">
32
  <pre class="text-xs text-gray-300" style="margin-left: {{ part.level * 1.5 }}rem;">{{ part.source }}</pre>
 
25
  <td class="p-4">{{ part.parent_path }}</td>
26
  <td class="p-4">{{ part.level }}</td>
27
  <td class="p-4">Lines {{ part.location[0] }} to {{ part.location[1] }}</td>
28
+ <td class="p-4">
29
+ {% if part.vector[6] | int == 0 %}
30
+ -
31
+ {% else %}
32
+ {{ ['Input', 'Assigned', 'Returned'][part.vector[6] - 1] }}
33
+ {% endif %}
34
+ </td>
35
+ <td class="p-4">
36
+ {% if part.vector[7] | float == 0 %}
37
+ -
38
+ {% else %}
39
+ {{ (part.vector[7] * 1000) | round(3) }}
40
+ {% endif %}
41
+ </td>
42
  <td class="p-4">[{{ part.vector|join(', ') }}]</td>
43
  <td class="p-4">
44
  <pre class="text-xs text-gray-300" style="margin-left: {{ part.level * 1.5 }}rem;">{{ part.source }}</pre>