guildgate/templates/profile.html
2021-03-31 16:12:35 -04:00

35 lines
714 B
HTML

{{ define "profile" }}
{{ template "header" .}}
<h1>User Profile </h1>
<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>
</table>
<h1>User Groups </h1>
<table>
{{range .User.FriendlyGroups}}
<tr><th>Group: </th><td>{{.}}</td></tr>
{{end}}
</table>
<p><a href="/profile/edit">Edit Profile</a></p>
{{ template "footer" .}}
{{end}}