Skip to content

Commit

Permalink
Fix bug instrument names with links
Browse files Browse the repository at this point in the history
  • Loading branch information
ravimeijerrig committed Jan 6, 2025
1 parent 4347a83 commit 1330558
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 1330558

Please sign in to comment.