Skip to content

Commit

Permalink
Update templates/components/listings/publications/tr_card.html.twig
Browse files Browse the repository at this point in the history
Co-authored-by: Vivien Lacourba <vivien@w3.org>
  • Loading branch information
deniak and vivienlacourba authored Sep 12, 2024
1 parent 7c7c043 commit 49b0675
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions templates/components/listings/publications/tr_card.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@
{% endif %}
{% endblock translations %}
{% block crs %}
{% set cr = spec.specification.lastSpecVersionOfType('CR') %}
{% if spec.crd and cr %}
<div>
<dt>Latest Candidate Recommendation Snapshot</dt>
<dd><a href="{{ cr.uri }}">{{ w3c_date_format(cr.date)|raw }}</a></dd>
</div>
{% if spec.crd %}
{% set cr = spec.specification.lastSpecVersionOfType('CR') %} %}
{% if cr %}
<div>
<dt>Latest Candidate Recommendation Snapshot</dt>
<dd><a href="{{ cr.uri }}">{{ w3c_date_format(cr.date)|raw }}</a></dd>
</div>
{% endif %}
{% endif %}
{% endblock crs %}
</dl>
Expand Down

0 comments on commit 49b0675

Please sign in to comment.