90 lines
4.3 KiB
Twig
90 lines
4.3 KiB
Twig
|
{% extends '@mio/changelog/master.twig' %}
|
||
|
{% from '@mio/macros.twig' import navigation %}
|
||
|
|
||
|
{% set is_valid = change|length > 0 %}
|
||
|
{% set title = 'Changelog » ' ~ (is_valid ? 'Change #' ~ change.change_id : 'Unknown Change') %}
|
||
|
|
||
|
{% if is_valid %}
|
||
|
{% set canonical_url = '/changelog.php?c=' ~ change.change_id %}
|
||
|
{% endif %}
|
||
|
|
||
|
{% block content %}
|
||
|
<div class="container">
|
||
|
<div class="container__title changelog">
|
||
|
{{ title }}
|
||
|
</div>
|
||
|
<div class="container__content changelog__content">
|
||
|
{% if is_valid %}
|
||
|
<div class="changelog__change" id="#c{{ change.change_id }}">
|
||
|
<div class="changelog__change__line"
|
||
|
style="{{ change.action_colour|html_colour({'border-color':'%s'}) }}">
|
||
|
<div class="changelog__change__action {{ change.action_class is defined and change.action_class is not null ? ' changelog__change__action--' ~ change.action_class : '' }} changelog__change__action--{{ change.action_colour|colour_get_css_contrast }}"
|
||
|
style="{{ change.action_colour|html_colour({'background-color':'%s','border-color':'%s'}) }}">
|
||
|
{{ change.action_name }}
|
||
|
</div>
|
||
|
|
||
|
<div class="changelog__change__log">
|
||
|
{{ change.change_log }}
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="changelog__change__row">
|
||
|
<div class="changelog__change__column changelog__change__column--user-info">
|
||
|
<a class="changelog__change__user" href="/profile.php?u={{ change.user_id }}">
|
||
|
<div class="avatar changelog__change__user__avatar"
|
||
|
style="background-image:url('/profile.php?u={{ change.user_id }}&m=avatar')">
|
||
|
</div>
|
||
|
|
||
|
<div class="changelog__change__user__info">
|
||
|
<div class="changelog__change__user__name">
|
||
|
{{ change.username }}
|
||
|
</div>
|
||
|
|
||
|
<div class="changelog__change__user__title">
|
||
|
{{ change.user_title }}
|
||
|
</div>
|
||
|
</div>
|
||
|
</a>
|
||
|
|
||
|
<a class="changelog__change__date"
|
||
|
href="/changelog.php?d={{ change.change_date }}">
|
||
|
<time datetime="{{ change.change_created|date('c') }}"
|
||
|
title="{{ change.change_created|date('r') }}">
|
||
|
{{ change.change_created|time_diff }}
|
||
|
</time>
|
||
|
</a>
|
||
|
</div>
|
||
|
|
||
|
<div class="changelog__change__column changelog__change__column--change-info">
|
||
|
<div class="changelog__change__text">
|
||
|
{% if change.change_text|length >= 1 %}
|
||
|
{{ change.change_text|md|raw }}
|
||
|
{% else %}
|
||
|
<p>This change has no additional notes.</p>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
|
||
|
<ul class="changelog__change__tags">
|
||
|
{% for tag in tags %}
|
||
|
<li class="changelog__change__tag"
|
||
|
title="{{ tag.tag_description }}">
|
||
|
<a href="/changelog.php?t={{ tag.tag_id }}" class="changelog__change__tag__link">
|
||
|
{{ tag.tag_name }}
|
||
|
</a>
|
||
|
</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% else %}
|
||
|
<div class="changelog__none">
|
||
|
The requested change could not be found.
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
{{ navigation(mio_navigation) }}
|
||
|
{% endblock %}
|