Snips/templates/user/profile.html.twig

23 lines
740 B
Twig
Raw Permalink Normal View History

{% extends "base/base.html.twig" %}
{% block body %}
<div class="row">
<div class="col-sm">
<h4>{{ app.user.name }}</h4>
<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">
<h4>Change profile</h4>
{{ form(form) }}
</div>
</div>
{% endblock %}