02a0cbb6bb
Switched gopsutil with a temporary more stable fork. Ping PostgreSQL upon connecting. We need a global solution for connection drops. A connection timeout, perhaps? Added the rowmenu CSS class for styling sidebar menus. Added the real_first_child CSS class, we might be able to get around using it by redoing the <form> nesting. Added the rowlist CSS class. Added the bgavatars CSS class. Added avatars to the User Manager. Added limited responsivity to the Shadow Theme, I might have broken some things in the other themes, I'll fix that soon! A per-theme post-avatar-bg.jpg file is now used for the first topic layout rather than the global white-dot.jpg file.
25 lines
871 B
HTML
25 lines
871 B
HTML
{{template "header.html" . }}
|
|
{{template "account-menu.html" . }}
|
|
<div class="colstack_right">
|
|
<div class="colstack_item colstack_head rowhead">
|
|
<div class="rowitem"><a>Edit Avatar</a></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" /></div>
|
|
</div>
|
|
<div class="formrow">
|
|
<div class="formitem"><button name="account-button" class="formbutton">Update</button></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{{template "footer.html" . }}
|