First not working app skeleton with nix support and dependency setup and generated logo not final structure
This commit is contained in:
18
templates/user.html
Normal file
18
templates/user.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{{define "user"}}{{template "base" .}}{{end}}
|
||||
{{define "content"}}
|
||||
<div class="card">
|
||||
<h2>@{{.Viewed.Username}}</h2>
|
||||
<p class="small">Joined {{fmtTime .Viewed.CreatedAt}}</p>
|
||||
<p>Games played: {{.Stats.Games}} Wins: {{.Stats.Wins}} Losses: {{.Stats.Losses}}</p>
|
||||
{{if .Own}}
|
||||
<hr>
|
||||
<h3>Update your profile</h3>
|
||||
<form method="POST" action="/me">
|
||||
<label class="label">Username</label>
|
||||
<input class="input" name="username" value="{{.Viewed.Username}}" required>
|
||||
<div style="height:8px"></div>
|
||||
<button class="btn btn-primary">Save</button>
|
||||
</form>
|
||||
{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user