Skip to content

Commit 49b0675

Browse files
Update templates/components/listings/publications/tr_card.html.twig
Co-authored-by: Vivien Lacourba <[email protected]>
1 parent 7c7c043 commit 49b0675

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

templates/components/listings/publications/tr_card.html.twig

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@
3838
{% endif %}
3939
{% endblock translations %}
4040
{% block crs %}
41-
{% set cr = spec.specification.lastSpecVersionOfType('CR') %}
42-
{% if spec.crd and cr %}
43-
<div>
44-
<dt>Latest Candidate Recommendation Snapshot</dt>
45-
<dd><a href="{{ cr.uri }}">{{ w3c_date_format(cr.date)|raw }}</a></dd>
46-
</div>
41+
{% if spec.crd %}
42+
{% set cr = spec.specification.lastSpecVersionOfType('CR') %} %}
43+
{% if cr %}
44+
<div>
45+
<dt>Latest Candidate Recommendation Snapshot</dt>
46+
<dd><a href="{{ cr.uri }}">{{ w3c_date_format(cr.date)|raw }}</a></dd>
47+
</div>
48+
{% endif %}
4749
{% endif %}
4850
{% endblock crs %}
4951
</dl>

0 commit comments

Comments
 (0)