{{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}}