wiki-grav/plugins/admin/themes/grav/templates/changelog.html.twig
2022-04-24 14:32:58 +02:00

22 lines
610 B
Twig

{% set slug = uri.param('slug') %}
{% set changelog = admin.getChangelog(slug) %}
<section id="ajax" class="changelog">
<a href="#" class="remodal-close"></a>
{% if changelog %}
<h1>{{title}} Changelog</h1>
<div class="changelog-overflow">
{% for version, log in changelog %}
<h3 id="{{ version | replace({" ": '-'}) }}">v{{ version }}</h3>
<h4 title="{{ log.date|date('F jS \\a\\t g:ia') }}">{{ log.date|nicetime }}</h4>
{{ log.content|markdown|raw }}
{% endfor %}
</div>
{% endif %}
</section>