gosora/templates/account_own_edit_level.html
Azareal 0ff56af36f Fix level bar UI.
Reduce boilerplate.
2021-07-28 17:43:38 +10:00

8 lines
356 B
HTML

<div class="rowitem level_inprogress">
<div class="levelBit"{{if ne .CurrentScore 0}}style="width:{{.Percentage}}%;"{{end}}>
<a href="/user/levels/">{{level .CurrentUser.Level}}</a>
</div>
<div class="progressWrap"{{/**{{if ne .CurrentScore 0}}style="width:{{.Percentage}}%;"{{end}}**/}}>
<div>{{.CurrentScore}} / {{.NextScore}}</div>
</div>
</div>