Improve profile page
This commit is contained in:
parent
e2c8376482
commit
38a53c6bd3
@ -2,26 +2,50 @@
|
|||||||
|
|
||||||
{% set title = app.user.name %}
|
{% set title = app.user.name %}
|
||||||
|
|
||||||
|
{% block column2 %}
|
||||||
|
<h5>Change profile</h5>
|
||||||
|
{{ form(form) }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block column1 %}
|
{% block column1 %}
|
||||||
|
<h5>Api</h5>
|
||||||
<div class="input-group mb-3">
|
<div class="input-group mb-3">
|
||||||
<span class="input-group-text" id="api-key">Api Key</span>
|
<span class="input-group-text" id="api-key">Api Key</span>
|
||||||
<input type="text" class="form-control" aria-label="Username" aria-describedby="api-key"
|
<input type="text" class="form-control" aria-label="Username" aria-describedby="api-key"
|
||||||
value="{{ app.user.apiKey }}" readonly>
|
value="{{ app.user.apiKey }}" readonly>
|
||||||
<a type="button" class="btn btn-outline-secondary" href="{{ path('user_apikey_generate') }}">Regenerate</a> <br/>
|
<a type="button" class="btn btn-outline-secondary" href="{{ path('user_apikey_generate') }}">Regenerate</a> <br/>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
|
||||||
{% if is_granted('ROLE_ADMIN') %}
|
{% if is_granted('ROLE_ADMIN') %}
|
||||||
<br/><br/>
|
<h5>Latest release stats</h5>
|
||||||
<h4>Latest release stats</h4>
|
<table class="table table-bordered table-hover">
|
||||||
Branch: {{ release.branch }} <br/>
|
<thead>
|
||||||
Date: {{ release.date }} <br/>
|
<tr>
|
||||||
Hash short: {{ release.commitHashShort }} <br/>
|
<th>Property</th>
|
||||||
Hash long: {{ release.commitHashLong }} <br/>
|
<th>Value</th>
|
||||||
Commit date: {{ release.commitDate }} <br/>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>Branch</td>
|
||||||
|
<td>{{ release.branch }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Date</td>
|
||||||
|
<td>{{ release.date }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Hash short</td>
|
||||||
|
<td>{{ release.commitHashShort }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Hash long</td>
|
||||||
|
<td>{{ release.commitHashLong }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Commit date</td>
|
||||||
|
<td>{{ release.commitDate }}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block column2 %}
|
|
||||||
<h3>Change profile</h3>
|
|
||||||
{{ form(form) }}
|
|
||||||
{% endblock %}
|
|
Loading…
x
Reference in New Issue
Block a user