pages + refactor

This commit is contained in:
2021-10-04 16:57:29 +02:00
parent 5004678f2b
commit c538200ea9
28 changed files with 439 additions and 91 deletions
+27
View File
@@ -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>