2018-08-15 01:12:58 +00:00
|
|
|
{% extends 'changelog/master.twig' %}
|
|
|
|
{% from 'macros.twig' import pagination %}
|
|
|
|
{% from 'changelog/macros.twig' import changelog_listing %}
|
|
|
|
{% from '_layout/comments.twig' import comments_section %}
|
2018-07-06 01:28:06 +00:00
|
|
|
|
2018-07-07 19:21:42 +00:00
|
|
|
{% set is_valid = changes|length > 0 %}
|
|
|
|
{% set is_date = changelog_date|length > 0 %}
|
2018-07-06 01:28:06 +00:00
|
|
|
{% set title = 'Changelog' %}
|
2018-07-07 19:21:42 +00:00
|
|
|
|
|
|
|
{% if is_valid %}
|
|
|
|
{%
|
|
|
|
set canonical_url = '/changelog.php'|url_construct({
|
|
|
|
'd': changelog_date,
|
|
|
|
'u': changelog_user ? changelog_user : '',
|
|
|
|
'o': changelog_offset
|
|
|
|
})
|
|
|
|
%}
|
|
|
|
|
|
|
|
{% if is_date or changelog_user %}
|
|
|
|
{% set title = title ~ ' »' ~ (changelog_date ? ' ' ~ changes[0].change_date : '') ~ (changelog_user ? ' by ' ~ changes[0].username : '') %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2018-07-06 01:28:06 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
|
|
|
<div class="container__title">
|
2018-07-07 19:21:42 +00:00
|
|
|
{{ title }}
|
2018-07-06 01:28:06 +00:00
|
|
|
</div>
|
2018-08-11 16:46:39 +00:00
|
|
|
<div class="changelog__content">
|
2018-07-07 19:21:42 +00:00
|
|
|
{{ changelog_listing(changes, is_date) }}
|
|
|
|
|
|
|
|
{% if not is_date %}
|
|
|
|
{{ pagination(changelog_count, changelog_take, changelog_offset, '/changelog.php'|url_construct({
|
|
|
|
'd': changelog_date,
|
|
|
|
'u': changelog_user ? changelog_user : ''
|
|
|
|
})) }}
|
|
|
|
{% endif %}
|
2018-07-06 01:28:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-08-06 22:19:35 +00:00
|
|
|
{% if comments is defined %}
|
|
|
|
<div class="container">
|
|
|
|
<div class="container__title">
|
|
|
|
Comments
|
|
|
|
</div>
|
|
|
|
{{ comments_section(comments, comments_category, current_user|default(null), comments_perms) }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-07-06 01:28:06 +00:00
|
|
|
{% endblock %}
|