Skip to content

Commit 9f05a6f

Browse files
authored
Merge pull request #142 from w3c/CRS-CRD
for CRD, display the latest CRS of the specification
2 parents 7284f60 + 49b0675 commit 9f05a6f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@
3737
</div>
3838
{% endif %}
3939
{% endblock translations %}
40+
{% block crs %}
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 %}
49+
{% endif %}
50+
{% endblock crs %}
4051
</dl>
4152
{% block description %}
4253
{{ spec.specification.description|raw }}

0 commit comments

Comments
 (0)