99da1fcbaa
Added support for temporary bans. Moved the Gosora specific template logic out of main.go and into template_init.go Added an internal temporary group API. We now use h1s in the theme headers. There may be some issues with the themes other than Shadow which we may need to resolve. Added ARIA attributes in a few places for improved accessibility. Added support for inputs in links for the .edit_field API. Removed a few unneccesary prepared statements.
25 lines
884 B
HTML
25 lines
884 B
HTML
{{template "header.html" . }}
|
|
{{template "account-menu.html" . }}
|
|
<main class="colstack_right">
|
|
<div class="colstack_item colstack_head rowhead">
|
|
<div class="rowitem"><h1>Edit Avatar</h1></div>
|
|
</div>
|
|
{{if .CurrentUser.Avatar}}
|
|
<div class="colstack_item">
|
|
<div class="rowitem"><img src="{{.CurrentUser.Avatar}}" height="128px" max-width="128px" /></div>
|
|
</div>
|
|
{{end}}
|
|
<div class="colstack_item">
|
|
<form action="/user/edit/avatar/submit/" method="post" enctype="multipart/form-data">
|
|
<div class="formrow real_first_child">
|
|
<div class="formitem formlabel"><a>Upload Avatar</a></div>
|
|
<div class="formitem"><input name="account-avatar" type="file" required /></div>
|
|
</div>
|
|
<div class="formrow">
|
|
<div class="formitem"><button name="account-button" class="formbutton">Update</button></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</main>
|
|
{{template "footer.html" . }}
|