Added viz hint if PES is part of reaction

This commit is contained in:
Tim Lorsbach
2026-06-19 09:32:34 +02:00
parent 297c87f4d9
commit 831496992c
6 changed files with 16 additions and 14 deletions

View File

@ -82,6 +82,9 @@
<div class="collapse-content">
<div class="flex justify-center">{{ edge.edge_label.as_svg|safe }}</div>
</div>
{% if edge.edge_label.contains_pes %}
<span class='alert alert-info alert-soft'>The reaction contains a partially elucidated structure!</br>For visualization the representative structure is used. The pathway itself will show the actual partially elucidated structure.</span>
{% endif %}
</div>
<!-- Reaction Description -->
@ -92,7 +95,7 @@
<div class="flex flex-wrap items-center justify-center gap-4">
{% for educt in edge.start_nodes.all %}
<a href="{{ educt.url }}" class="btn btn-outline btn-sm"
>{{ educt.name }}</a
>{{ educt.get_name }}</a
>
{% endfor %}
<svg
@ -112,7 +115,7 @@
</svg>
{% for product in edge.end_nodes.all %}
<a href="{{ product.url }}" class="btn btn-outline btn-sm"
>{{ product.name }}</a
>{{ product.get_name }}</a
>
{% endfor %}
</div>

View File

@ -79,6 +79,9 @@
<div class="collapse-content">
<div class="flex justify-center">{{ reaction.as_svg|safe }}</div>
</div>
{% if reaction.contains_pes %}
<span class='alert alert-info alert-soft'>The reaction contains a partially elucidated structure!</br>For visualization the representative structure is used. The pathway itself will show the actual partially elucidated structure.</span>
{% endif %}
</div>
<!-- Reaction Description -->