Closes #70: User profile metadata

This commit is contained in:
jendib 2016-02-20 23:49:54 +01:00
parent adebb7ff6d
commit 67171e05b9
2 changed files with 25 additions and 2 deletions

View File

@ -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>

View File

@ -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>