mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
Closes #70: User profile metadata
This commit is contained in:
parent
adebb7ff6d
commit
67171e05b9
@ -13,6 +13,7 @@
|
|||||||
<td class="col-xs-4">
|
<td class="col-xs-4">
|
||||||
<span class="glyphicon glyphicon-user"></span>
|
<span class="glyphicon glyphicon-user"></span>
|
||||||
{{ user.username }}
|
{{ user.username }}
|
||||||
|
<span class="text-muted" ng-if="userInfo.username == user.username">It's you!</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -2,5 +2,27 @@
|
|||||||
<h1>{{ user.username }} <small>{{ user.email }}</small></h1>
|
<h1>{{ user.username }} <small>{{ user.email }}</small></h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h4>Documents created by {{ user.username }}</h4>
|
<h4>Quota used</h4>
|
||||||
TODO
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="progress" title="{{(user.storage_current / user.storage_quota * 100) | number: 0}}% Used">
|
||||||
|
<div class="progress-bar" ng-style="{ 'width': (user.storage_current / user.storage_quota * 100) + '%' }">
|
||||||
|
<span class="sr-only">{{ (user.storage_current / user.storage_quota * 100) }}% Used</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h4>Related links</h4>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a ng-href="#/document/search/by:{{ user.username }}">
|
||||||
|
Documents created by {{ user.username }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a ng-href="#/settings/user/edit/{{ user.username }}" ng-if="userInfo.base_functions.indexOf('ADMIN') != -1">
|
||||||
|
Edit {{ user.username}} user
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
Loading…
Reference in New Issue
Block a user