bf851bd9fc
Added support for dyntmpl to the template system. The Account Dashboard now sort of uses dyntmpl, more work needed here. Renamed the pre_render_view_topic hook to pre_render_topic. Added the GetCurrentLangPack() function. Added the alerts_no_new_alerts phrase. Added the account_level_list phrase. Refactored the route rename logic in the patcher to cut down on the amount of boilerplate. Added more route renames to the patcher. You will need to run the patcher / updater in this commit.
29 lines
1.6 KiB
HTML
29 lines
1.6 KiB
HTML
<form id="avatar_form" action="/user/edit/avatar/submit/?session={{.CurrentUser.Session}}" method="post" enctype="multipart/form-data"></form>
|
|
<div class="coldyn_block">
|
|
<div id="dash_left" class="coldyn_item">
|
|
<div class="rowitem">
|
|
<span id="dash_username">
|
|
<form id="dash_username_form" action="/user/edit/username/submit/?session={{.CurrentUser.Session}}" method="post"></form>
|
|
<input form="dash_username_form" name="account-new-username" value="{{.CurrentUser.Name}}" />
|
|
<button form="dash_username_form" class="formbutton">{{lang "account_username_save"}}</button>
|
|
</span>
|
|
<img src="{{.CurrentUser.Avatar}}" height="128px" />
|
|
<span id="dash_avatar_buttons">
|
|
<input form="avatar_form" id="select_avatar" name="account-avatar" type="file" required style="display: none;" />
|
|
<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>
|
|
</span>
|
|
</div>
|
|
</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>
|
|
<div class="progressWrap" style="width: {{.Percentage}}%;">
|
|
<div>{{.CurrentScore}} / {{.NextScore}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |