guildgate/templates/profile.html

35 lines
714 B
HTML
Raw Normal View History

2020-09-24 16:39:52 -04:00
{{ define "profile" }}
{{ template "header" .}}
2021-03-31 16:12:35 -04:00
<h1>User Profile </h1>
2020-09-24 16:39:52 -04:00
<table>
<tr>
<th>Username: </th><td>{{ .User.Username }}</td>
</tr>
<tr>
<th>Display Name: </th><td>{{ .User.DisplayName }}</td>
</tr>
<tr>
<th>First Name: </th><td>{{ .User.FirstName }}</td>
</tr>
<tr>
<th>Last Name: </th><td>{{ .User.LastName }}</td>
</tr>
<tr>
<th>Email Address: </th><td>{{ .User.Email }}</td>
</tr>
<tr>
<th>User ID: </th><td>{{ .User.ID }}</td>
</tr>
2021-03-31 16:12:35 -04:00
</table>
<h1>User Groups </h1>
<table>
{{range .User.FriendlyGroups}}
<tr><th>Group: </th><td>{{.}}</td></tr>
{{end}}
2020-09-24 16:39:52 -04:00
</table>
2020-09-24 17:12:22 -04:00
<p><a href="/profile/edit">Edit Profile</a></p>
2020-09-24 16:39:52 -04:00
{{ template "footer" .}}
{{end}}