pages + refactor
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<div class="container">
|
||||
<page-notfound *ngIf="notfound"></page-notfound>
|
||||
<ng-container *ngIf="user">
|
||||
<table>
|
||||
<tr>
|
||||
<th>{{'user.username' | i18n}}</th>
|
||||
<td>{{user.username}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{'user.points' | i18n}}</th>
|
||||
<td>{{user.metadata && user.metadata.points || 0}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{'user.about' | i18n}}</th>
|
||||
<td><p class="text">{{user.about}}</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><a routerLink="/u/e/{{user.username}}">{{'user.entries' | i18n}}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><a routerLink="/u/c/{{user.username}}">{{'user.comments' | i18n}}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</ng-container>
|
||||
</div>
|
||||
Reference in New Issue
Block a user