broadfield-dev commited on
Commit
afcea37
·
verified ·
1 Parent(s): 81f613a

Update templates/results_partial.html

Browse files
Files changed (1) hide show
  1. templates/results_partial.html +2 -10
templates/results_partial.html CHANGED
@@ -11,7 +11,6 @@
11
  <th class="p-4 text-left font-semibold">Level</th>
12
  <th class="p-4 text-left font-semibold">Location</th>
13
  <th class="p-4 text-left font-semibold">Variable Role</th>
14
- <th class="p-4 text-left font-semibold">Variable Name</th>
15
  <th class="p-4 text-left font-semibold">Vector</th>
16
  <th class="p-4 text-left font-semibold">Source</th>
17
  </tr>
@@ -26,17 +25,10 @@
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>
 
11
  <th class="p-4 text-left font-semibold">Level</th>
12
  <th class="p-4 text-left font-semibold">Location</th>
13
  <th class="p-4 text-left font-semibold">Variable Role</th>
 
14
  <th class="p-4 text-left font-semibold">Vector</th>
15
  <th class="p-4 text-left font-semibold">Source</th>
16
  </tr>
 
25
  <td class="p-4">{{ part.level }}</td>
26
  <td class="p-4">Lines {{ part.location[0] }} to {{ part.location[1] }}</td>
27
  <td class="p-4">
28
+ {% if part.category in ['input_variable', 'assigned_variable', 'returned_variable'] %}
29
+ {{ part.category.replace('_variable', '') | capitalize }}
30
  {% else %}
 
 
 
 
 
31
  -
 
 
32
  {% endif %}
33
  </td>
34
  <td class="p-4">[{{ part.vector|join(', ') }}]</td>