Snips/templates/user/profile.html.twig

23 lines
749 B
Twig

{% extends 'base/single.column.html.twig' %}
{% block body %}
<div class="row">
<div class="col-sm">
<h3>{{ app.user.name }}</h3>
<br/>
{% if is_granted('ROLE_ADMIN') %}
<br/><br/>
<h4>Latest release stats</h4>
Branch: {{ release.branch }} <br/>
Date: {{ release.date }} <br/>
Hash short: {{ release.commitHashShort }} <br/>
Hash long: {{ release.commitHashLong }} <br/>
Commit date: {{ release.commitDate }} <br/>
{% endif %}
</div>
<div class="col-sm">
<h3>Change profile</h3>
{{ form(form) }}
</div>
</div>
{% endblock %}