Skip to content

Commit

Permalink
templates: collision type badge
Browse files Browse the repository at this point in the history
Adds new collision type badge and fixes collision energy badge links to
search in the appropriate facet only. Closes #3378.
  • Loading branch information
tiborsimko committed Jun 29, 2023
1 parent 2f7b887 commit 192a64a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ <h1 class="d-inline"> {{ record.title_additional or record.title }} </h1>
{% endfor %}
{% endif %}
{% if record.experiment %} <a class="badge badge-experiment" href="/search?experiment={{ record.experiment }}">{{ record.experiment }}</a> {% endif %}
{% if record.collision_information %} <a class="badge badge-tag" href="/search?q={{ record.collision_information.energy }}"> {{ record.collision_information.energy }}</a> {% endif %}
{% if record.collision_information %}
{% if record.collision_information.energy %}
<a class="badge badge-tag" href="/search?collision_energy={{ record.collision_information.energy }}"> {{ record.collision_information.energy }}</a>
{% endif %}
{% if record.collision_information.type %}
<a class="badge badge-tag" href="/search?collision_type={{ record.collision_information.type }}"> {{ record.collision_information.type }}</a>
{% endif %}
{% endif %}
{% if record.accelerator %} <a class="badge badge-tag" href="/search?q={{ record.accelerator }}"> {{ record.accelerator }}</a> {% endif %}
{% if record.relations %}
{% for relation in record.relations %}
Expand Down

0 comments on commit 192a64a

Please sign in to comment.