hanayo/templates/settings/userpage.html
2019-02-23 13:29:15 +00:00

34 lines
1.0 KiB
HTML

{{/*###
Handler=/settings/userpage
TitleBar=Userpage
KyutGrill=settings2.jpg
Include=menu.html
MinPrivileges=2
*/}}
{{ define "tpl" }}
{{ $ := . }}
<div class="ui container">
<div class="ui stackable grid">
{{ template "settingsSidebar" . }}
<div class="twelve wide column">
<div class="ui segment">
{{ $f := ieForm .Gin }}
{{ with .Get "users/userpage?id=%d" .Context.User.ID }}
<form class="ui form" method="post">
<textarea tabindex="1" class="monospace" name="data">{{ .userpage }}</textarea>
<p><a href="https://docs.ripple.moe/docs/misc/hanayo_bbcode" target="_blank">{{ $.T "BBCode syntax reference" }}</a></p>
<div class="ui divider"></div>
<div class="ui segment twemoji" id="userpage-content">{{ parseUserpage .userpage | html }}</div>
<div class="ui divider"></div>
<div style="text-align: right">
<button type="submit" class="ui blue button">{{ $.T "Save" }}</button>
</div>
{{ $f }}
</form>
{{ end }}
</div>
</div>
</div>
</div>
{{ end }}