42 lines
1.9 KiB
HTML
42 lines
1.9 KiB
HTML
{{/*###
|
|
Handler=/
|
|
TitleBar=Home Page
|
|
KyutGrill=homepage2.jpg
|
|
*/}}
|
|
{{ define "tpl" }}
|
|
{{ $cf := .ClientFlags }}
|
|
{{ $ds := band $cf 1 }}
|
|
{{ $ := . }}
|
|
<div class="ui container">
|
|
<div class="ui center aligned segment">
|
|
<img src="/static/logos/circle.png">
|
|
</div>
|
|
{{ $set := systemSettings "website_home_alert" }}
|
|
{{ with $set.website_home_alert.String }}
|
|
<div class="ui warning message">
|
|
{{ . | html }}
|
|
</div>
|
|
{{ end }}
|
|
{{/* Not logged in block */}}
|
|
{{ if not .Context.User.ID }}
|
|
<div class="ui segment">
|
|
<h1 class="ui header">{{ .T "Welcome to Yozora." }}</h1>
|
|
<p>
|
|
{{ .T "You look new here. Allow us to introduce you to what Yozora is." }}
|
|
</p>
|
|
<p>
|
|
{{ .T "Yozora is a private osu! server, featuring multiplayer, PP for relax, autopilot and regular osu!, leaderboards for every (submitted) map, a very active community and a development team going strong implementing new features and squashing bugs. <a href='/about'>You can check out even more features here.</a> It has also a very friendly community, and it's <a href='https://github.com/osuYozora'>open source!</a> Just so you know, <b>we currently have %s users online and %s registered users!</b>" (rediget "ripple:online_users") (rediget "ripple:registered_users") | html }}
|
|
</p>
|
|
<h3 class="ui header center aligned">{{ .T "What are you waiting for? Join Yozora! It's risk-free: you won't get your account banned on the official server if you play on Yozora.<br>You can also switch anytime between the official osu! server and Yozora!" | html }}</h3>
|
|
</div>
|
|
{{ else }}
|
|
<div class="ui segment">
|
|
<h1 class="ui header">{{ .T "Howdy, %s!" .Context.User.Username }}</h1>
|
|
<p>
|
|
{{ .T "Welcome back to Yozora. We currently have <b>%s online users and %s total registered users.</b> Nice day to farm PP, isn't it?" (rediget "ripple:online_users") (rediget "ripple:registered_users") | html }}
|
|
</p>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|