remove ripple

This commit is contained in:
Alicia
2019-02-23 17:23:22 +00:00
parent 1538ba4840
commit d0dffb45de
18 changed files with 119 additions and 85 deletions

View File

@@ -12,6 +12,18 @@
{{ if after .silence_info.end }}
<div class="ui error centered message">{{ $global.T "User is <b>silenced</b> for %s, expires %s." (.silence_info.reason | htmlescaper) (time .silence_info.end) | html }}</div>
{{ end }}
{{ $sarag := has .id 1193 }}
{{ $alicia := has .id 1000 }}
{{ $catherine := has .id 999 }}
{{ $super := has .privileges 15728639 }}
{{ $dev := has .privileges 11534335 }}
{{ $donor := has .privileges 7 }}
{{ $admin := has .privileges 7262715 }}
{{ $chatmod := has .privileges 786499 }}
{{ $bn := has .privileges 267 }}
{{ if hasAdmin $global.Context.User.Privileges }}
{{ $restr := not (has .privileges 1) }}
{{ $disab := not (has .privileges 2) }}
@@ -50,7 +62,17 @@
</div>
<div class="table element">
<h1 class="ui header">
{{ .username }}
{{ if $super }}
<div class="owner">
{{ .username }}
</div>
{{else if $dev}}
<div class="dev">
{{ .username }}
</div>
{{ else }}
{{ .username }}
{{ end }}
</h1>
{{ if .username_aka }}
<div class="subtitle">
@@ -83,7 +105,7 @@
</a>
{{ end }}
{{ if hasAdmin $global.Context.User.Privileges }}
<a href="https://old.ripple.moe/index.php?p=103&id={{ $global.UserID }}"
<a href="https://old.yozora.pw/index.php?p=103&id={{ $global.UserID }}"
target="_blank" title="Quick edit" class="ui circular mini blue icon button">
<i class="folder open outline icon"></i>
</a>
@@ -102,8 +124,35 @@
<div class="ui three column divided stackable grid">
<div class="row">
<div class="column">
{{ $global.T "<b>%s</b> is a Ripple player from <b>%s</b>." .username (country .country true) | html }}
<br>{{ $global.T "They signed up on Ripple %s." (time $user.registered_on) | html }}
{{if $super }}
{{ $global.T "<b >%s</b> " .username | html }}
is an <i class="pink code small icon"></i><b>Owner</b>
{{ $global.T " from <b>%s</b>." (country .country true) | html }}
{{else if $dev}}
{{ $global.T "<b>%s</b> " .username | html }}
is a <i class="blue code small icon"></i><b>Developer</b>
{{ $global.T " from <b>%s</b>." (country .country true) | html }}
{{else if $admin}}
{{ $global.T "<b>%s</b> " .username | html }}
is an <i class="red lightning small icon"></i><b>Administrator</b>
{{ $global.T " from <b>%s</b>." (country .country true) | html }}
{{else if $chatmod}}
{{ $global.T "<b>%s</b> " .username | html }}
is a <i class="blue star small icon"></i><b>Chat Mod</b>
{{ $global.T " from <b>%s</b>." (country .country true) | html }}
{{else if $bn}}
{{ $global.T "<b>%s</b> " .username | html }}
is a <i class="orange universal access small icon"></i><b>Nominator</b>
{{ $global.T " from <b>%s</b>." (country .country true) | html }}
{{else if $donor }}
{{ $global.T "<b>%s</b> " .username | html }}
is a <i class="pink heart small icon"></i><b>Supporter</b>
{{ $global.T " from <b>%s</b>." (country .country true) | html }}
{{ else }}
{{ $global.T "<b>%s</b> is a player from <b>%s</b>." .username (country .country true) | html }}
{{ end }}
<br>{{ $global.T "They signed up on Yozora %s." (time $user.registered_on) | html }}
<br>{{ $global.T "Last seen: %s." (time $user.latest_activity) | html }}
<br>{{ with playstyle .play_style $global }}{{ $global.T "They play with %s." . }}{{ end }}
</div>