2020-04-02 22:24:32 +00:00
< form id = "avatar_form" action = "/user/edit/avatar/submit/?s={{.CurrentUser.Session}}" method = "post" enctype = "multipart/form-data" > < / form >
2018-11-28 21:46:53 +00:00
< div class = "coldyn_block" >
< div id = "dash_left" class = "coldyn_item" >
< div class = "rowitem" >
< span id = "dash_username" >
2020-04-02 22:24:32 +00:00
< form id = "dash_username_form" action = "/user/edit/username/submit/?s={{.CurrentUser.Session}}" method = "post" > < / form >
< form id = "revoke_avatar_form" action = "/user/edit/avatar/revoke/submit/?s={{.CurrentUser.Session}}" method = "post" > < / form >
< input form = "dash_username_form" name = "new-name" value = "{{.CurrentUser.Name}}" >
< button form = "dash_username_form" class = "formbutton" > {{lang "account_username_save"}}< / button >
2018-11-28 21:46:53 +00:00
< / span >
2020-03-24 02:07:30 +00:00
< img src = "{{.CurrentUser.Avatar}}" height = "128px" >
2018-11-28 21:46:53 +00:00
< span id = "dash_avatar_buttons" >
2019-06-09 03:21:48 +00:00
{{if .CurrentUser.Perms.UploadAvatars}}
2020-03-24 02:07:30 +00:00
< input form = "avatar_form" id = "select_avatar" name = "account-avatar" type = "file" required class = "auto_hide" >
2018-11-28 21:46:53 +00:00
< label for = "select_avatar" class = "formbutton" > {{lang "account_avatar_select"}}< / label >
< button form = "avatar_form" name = "account-button" class = "formbutton" > {{lang "account_avatar_update_button"}}< / button >
2019-06-09 03:21:48 +00:00
{{else if .CurrentUser.RawAvatar}}< button form = "revoke_avatar_form" id = "revoke_avatars" name = "revoke-button" class = "formbutton" > {{lang "account_avatar_revoke_button"}}< / button > {{end}}
2018-11-28 21:46:53 +00:00
< / span >
2018-06-17 07:28:18 +00:00
< / div >
2018-11-28 21:46:53 +00:00
< / div >
< div id = "dash_right" class = "coldyn_item" >
< div class = "rowitem" > {{if not .MFASetup}}< a href = "/user/edit/mfa/setup/" > {{lang "account_dash_2fa_setup"}}< / a > {{else}}< a href = "/user/edit/mfa/" > {{lang "account_dash_2fa_manage"}}< / a > {{end}} < span class = "dash_security" > {{lang "account_dash_security_notice"}}< / span > < / div >
< div class = "rowitem level_inprogress" >
< div class = "levelBit" >
< a href = "/user/levels/" > {{level .CurrentUser.Level}}< / a >
< / div >
2019-10-27 23:13:24 +00:00
< div class = "progressWrap" style = "width:{{.Percentage}}%;" >
2018-11-28 21:46:53 +00:00
< div > {{.CurrentScore}} / {{.NextScore}}< / div >
2018-10-10 07:33:51 +00:00
< / div >
2018-06-17 07:28:18 +00:00
< / div >
2018-11-28 21:46:53 +00:00
< / div >
< / div >