Logo
Explore Help
Sign In
darkhelm/notifications-admin
1
0
Fork 0
You've already forked notifications-admin
mirror of https://github.com/GSA/notifications-admin.git synced 2026-09-04 19:08:26 -04:00
Code Issues Packages Projects Releases Wiki Activity
Files
47dbf35a68c2d5f714f57e00d5ba4c6e5ea0283b
notifications-admin/app/templates/components/content-metadata.html

14 lines
374 B
HTML
Raw Normal View History

Add styles and Jinja for component Most of these are cut-and-paste'd from the GOVUK metadata component: https://components.publishing.service.gov.uk/component-guide/metadata ...but stripped back to only include what we need and a optional suffix paragraph added. Links to styles and ERB template https://github.com/alphagov/govuk_publishing_components/blob/master/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss https://github.com/alphagov/govuk_publishing_components/blob/master/app/views/govuk_publishing_components/components/_metadata.html.erb Also adds it to the accessibility statement as an example and updates the test that checks any updates bump the date.
2022-01-05 11:53:09 +00:00
{% macro content_metadata(data, suffix=False) %}
<div class="content-metadata">
<dl>
{% for key, value in data.items() %}
<dt class="content-metadata__term">{{ key }}</dt>
<dd class="content-metadata__definition">{{ value }}</dd>
{% endfor %}
</dl>
{% if suffix %}
<p class="content-metadata__suffix">{{ suffix }}</p>
{% endif %}
</div>
{% endmacro %}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 531ms Template: 26ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API