Skip to content

Commit

Permalink
Merge pull request #142 from w3c/CRS-CRD
Browse files Browse the repository at this point in the history
for CRD, display the latest CRS of the specification
  • Loading branch information
deniak authored Sep 12, 2024
2 parents 7284f60 + 49b0675 commit 9f05a6f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/components/listings/publications/tr_card.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@
</div>
{% endif %}
{% endblock translations %}
{% block crs %}
{% 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>
{% block description %}
{{ spec.specification.description|raw }}
Expand Down

0 comments on commit 9f05a6f

Please sign in to comment.