Implement api with ability to read snips and profile
This commit is contained in:
@ -1,23 +1,27 @@
|
||||
{% extends 'base/two.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>
|
||||
{% set title = app.user.name %}
|
||||
|
||||
{% block column1 %}
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text" id="api-key">Api Key</span>
|
||||
<input type="text" class="form-control" aria-label="Username" aria-describedby="api-key"
|
||||
value="{{ app.user.apiKey }}" readonly>
|
||||
<a type="button" class="btn btn-outline-secondary" href="{{ path('user_apikey_generate') }}">Regenerate</a> <br/>
|
||||
</div>
|
||||
<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 %}
|
||||
{% endblock %}
|
||||
|
||||
{% block column2 %}
|
||||
<h3>Change profile</h3>
|
||||
{{ form(form) }}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user