Skip to content

Commit abed6be

Browse files
author
Rinke Hoekstra
committed
Nicer tables
1 parent 571ebfc commit abed6be

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/app/templates/transitions_list.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,19 @@ <h4>Transition from <strong>{{ e.transformable_situation_label.value }}</strong>
1414
<tr><th class="col-md-3">Care action</th><td>{{ e.care_action_label.value }}</td></tr>
1515
{% endif %}
1616
{% if e.inverse_transition %}
17-
<tr><th class="col-md-3">Inverse transition</th><td><span class='badge alert-danger'>{{ e.inverse_transition_label.value }}</span> <span class="badge">{{ e.irec_stripped.value }}</span> <small>({{ e.irec_label.value }})</small></td></tr>
17+
<tr><th class="col-md-3">
18+
{% if not itheader %}
19+
{% set itheader = True %}
20+
Inverse transition
21+
{% endif %}
22+
</th><td><span class='badge alert-danger'>{{ e.inverse_transition_label.value }}</span> from the recommendation to <strong>{{ e.irec_label.value|lower }}</strong> <span class="badge">{{ e.irec_stripped.value }}</span></td></tr>
1823
{% endif %}
1924
{% if e.similar_transition %}
20-
<tr><th class="col-md-3">Similar transition</th><td><span class='badge alert-warning'>{{ e.similar_transition_label.value }}</span> <span class="badge">{{ e.srec_stripped.value }}</span> <small>({{ e.srec_label.value }})</small></td></tr>
25+
<tr><th class="col-md-3">
26+
{% if not stheader %}
27+
{% set stheader = True %}
28+
Similar transition
29+
{% endif %}</th><td><span class='badge alert-warning'>{{ e.similar_transition_label.value }}</span> from the recommendation to <strong>{{ e.srec_label.value|lower }}</strong> <span class="badge">{{ e.srec_stripped.value }}</span></td></tr>
2130
{% endif %}
2231
{% if loop.last %}
2332
</tbody>

0 commit comments

Comments
 (0)