Skip to content

Commit

Permalink
Fix bug instrument names with links (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravimeijerrig authored Jan 8, 2025
2 parents 23900ff + 243611a commit cf5de19
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions amt/site/templates/macros/cards.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,23 @@
{% if subvalue %}
<strong>{{ render_attribute(subkey) }}</strong>: {{ render_value(subkey, subvalue, depth+1) }}
{% endif %}
{% if not loop.last %}<br \>{% endif %}
{% if not loop.last %}
{% if subvalue %}<br \>{% endif %}
{% endif %}
{% endfor %}
</div>
{% elif isinstance(value, 'list') %}
{% if key == "assessments" %}
{% for assessment in value %}{{ assessment["name"] }}{% endfor %}
<ul>
{% for assessment in value %}
<li>
<a class="rvo-link rvo-link--normal"
href="/algorithm/{{ algorithm_id }}/details/system_card/assessments/{{ assessment['name'].lower() }}">
{{ assessment['name'] }}
</a>
</li>
{% endfor %}
</ul>
{% elif key == "models" %}
{% for model in value %}{{ model["name"] }}{% endfor %}
{% else %}
Expand Down

0 comments on commit cf5de19

Please sign in to comment.