replace zxq.co/ripple/hanayo
This commit is contained in:
45
templates/register/elmo.html
Normal file
45
templates/register/elmo.html
Normal file
@@ -0,0 +1,45 @@
|
||||
{{/*###
|
||||
TitleBar=Elmo! Stop!
|
||||
HeadingTitle=Stop!
|
||||
KyutGrill=stop_sign.png
|
||||
HeadingOnRight=true
|
||||
*/}}
|
||||
{{ define "tpl" }}
|
||||
<div class="ui container">
|
||||
<div class="ui raised segments">
|
||||
<div class="ui segment">
|
||||
{{ $username := .RequestInfo.Username }}
|
||||
<img src="/static/jack_black.jpg" class="ui small right floated image" alt="Jack black">
|
||||
|
||||
<p>{{ .T "We see that you're trying to sign up while having already signed up as %s! Please note that multiaccounting is punishable, and can lead to a one month restriction!" $username }}</p>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
{{ .T "If you're %s, keep in mind that multiaccounting = ban." $username }}
|
||||
</li>
|
||||
<li>
|
||||
{{ .T "If you're not %s, but you're using %s's computer, please sign up on Ripple from your own computer." $username $username }}
|
||||
</li>
|
||||
<li>
|
||||
{{ .T "If you live with %s and you don't have your own computer from which to sign up on Ripple, then please contact support@ripple.moe, and we'll deal with your specific case." $username }}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
{{ .T "This warning may pop up also if you're using another computer on the same network of %s. As long as you're not using the same computer, you should be all good." $username }}
|
||||
</p>
|
||||
<p style="margin-bottom:40px;">
|
||||
<a href="/register?stopsign=1" class="camouflaged">{{ .T "If you truly have understood what's written above and you have understood that creating a multiaccount will lead to a restriction on your main account, you can click here and you'll be brought to the sign up page." }}</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="ui right aligned segment">
|
||||
<div class="ui buttons">
|
||||
<a tabindex="1" class="ui labeled blue icon button" href="/">
|
||||
<i class="left chevron icon"></i>
|
||||
{{ .T "Bring me back to safety!" }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
49
templates/register/register.html
Normal file
49
templates/register/register.html
Normal file
@@ -0,0 +1,49 @@
|
||||
{{ define "tpl" }}
|
||||
<div class="ui container">
|
||||
{{ $regEnabled := qb "SELECT value_int FROM system_settings WHERE name = 'registrations_enabled'" }}
|
||||
{{ if .Context.User.ID }}
|
||||
<div class="ui segment">
|
||||
{{ .T "You're already logged in!" }}
|
||||
</div>
|
||||
{{ else if not ($regEnabled.value_int.Bool) }}
|
||||
<div class="ui error message">
|
||||
{{ .T "Sorry, it's not possible to register at the moment. Please try again later." }}
|
||||
</div>
|
||||
{{ else }}
|
||||
{{ if eq (.Gin.Query "stopsign") "1" }}
|
||||
<div class="ui warning message">
|
||||
{{ .T "Remember: this seems like it's your second account! Do not multiaccount, or you're likely to get restricted!" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="tiny container">
|
||||
<div class="ui raised segments">
|
||||
<div class="ui segment">
|
||||
<form id="register-form" class="ui form" method="post" action="/register">
|
||||
<div class="field">
|
||||
<label>{{ .T "Username (2 to 15 characters, alphanumeric, spaces, <code>_[]-</code>)" | html }}</label>
|
||||
<input tabindex="1" type="text" name="username" placeholder="{{ .T "Username" }}" value="{{ .FormData.username }}" required pattern="^[A-Za-z0-9 _\[\]-]{2,15}$">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>{{ .T "Password (at least 8 characters)" }}</label>
|
||||
<input tabindex="2" type="password" name="password" placeholder="{{ .T "Password" }}" value="{{ .FormData.password }}" required pattern="^.{8,}$">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>{{ .T "Email" }}</label>
|
||||
<input tabindex="3" type="email" name="email" placeholder="{{ .T "Email" }}" value="{{ .FormData.email }}" required>
|
||||
</div>
|
||||
{{ with config "RecaptchaSite" }}
|
||||
<div class="field">
|
||||
<div class="g-recaptcha" data-sitekey="{{ . }}"></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ ieForm .Gin }}
|
||||
</form>
|
||||
</div>
|
||||
<div class="ui right aligned segment">
|
||||
<button tabindex="4" class="ui primary button" type="submit" form="register-form">{{ .T "Submit" }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
27
templates/register/verify.html
Normal file
27
templates/register/verify.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{{ define "tpl" }}
|
||||
<div class="ui container">
|
||||
<div class="ui segment">
|
||||
{{ .T "Your account has been created, however it still <b>needs to be verified!</b> Please log in into <b><u>osu! (the game)</u></b> using your account. <b>There is <u>no email confirmation</u> at the moment. All you need to do is connect to Ripple from the osu! client!</b> If you're having trouble, <a href='/doc/1'>follow this guide</a>." | html }}
|
||||
</div>
|
||||
<div class="ui centered error message">
|
||||
{{ .T "<b class='big text'>Do not let anyone except yourself log into your Ripple account!</b><br> Get on our <a href='%s'>Discord server's</a> #help channel instead (after following the steps on this page) so that we can help you out if you have trouble connecting." (config "DiscordServer") | html }}
|
||||
</div>
|
||||
<div class="ui segment">
|
||||
<h1 class="ui heading">{{ .T "The Guide (<a href='/doc/connection_guide' target='_blank'>Windows</a>, <a href='/doc/linux' target='_blank'>Linux</a>). TL;DR version below." | html }}</h1>
|
||||
<ol class="ui list">
|
||||
<li><a href="https://mu.nyodev.xyz/upd.php?id=18"><b>{{ .T "Download the server switcher" }}</b></a></li>
|
||||
<li>{{ .T "Extract it, disable your antivirus, execute <i>RippleServerSwitcher.exe</i> <b>as administrator</b>" | html }}</li>
|
||||
<li>{{ .T "Click on <b>Connect to Ripple</b>, then <b>Ok/Yes</b>" | html }}</li>
|
||||
<li>{{ .T "Make sure the switcher says you're connected to <b>Ripple</b>" | html }}</li>
|
||||
<li>{{ .T "If it says something about read-only mode, go to <code>C:\\Windows\\System32\\Drivers\\etc</code>, open the hosts' file Properties and make sure it's not set to \"Read only\"." | html }}</li>
|
||||
</ol>
|
||||
<p>
|
||||
{{ .T "If you're still having trouble, then again, get on our <a href='%s'>Discord server's</a> #help channel. To have a better chance to be answered, say \"strawberry\" anywhere in your messages so that we know you have actually read this." (config "DiscordServer") | html }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="ui center aligned segment">
|
||||
<h1 class="ui heading">{{ .T "Waiting for verification" }}</h1>
|
||||
<i class="circle notched huge loading icon"></i>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
34
templates/register/welcome.html
Normal file
34
templates/register/welcome.html
Normal file
@@ -0,0 +1,34 @@
|
||||
{{ define "tpl" }}
|
||||
<div class="ui container">
|
||||
<div class="ui segments">
|
||||
{{/* Dirty hack to detect if it's a multi */}}
|
||||
{{ if eq .TitleBar (.T "Welcome back!") }}
|
||||
<div class="ui segment">
|
||||
{{ .T "Congratulations for not reading things!" }}
|
||||
</div>
|
||||
<div class="ui center aligned segment">
|
||||
<h1 class="ui heading">{{ .T "Multiaccounts are not allowed on Ripple" }}</h1>
|
||||
</div>
|
||||
<div class="ui segment">
|
||||
{{ .T "Your new account has been <b>banned</b> and your main account has been <b>restricted</b>. You can appeal in a month by sending an email to <b><a href='mailto:support@ripple.moe'>support@ripple.moe</a></b>. You better read the rules next time." | html }}
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="ui segment">
|
||||
<h1 class="ui heading">{{ .T "Welcome to Ripple" }}</h1>
|
||||
</div>
|
||||
<div class="ui segment">
|
||||
<p>{{ .T "We're glad to have you here. <b>Your account is now active.</b> You can now play on Ripple and <a href='/login'>log in</a> on the website!" | html }}</p>
|
||||
<p>{{ .T "Here's a few things you might want to check out:" }}</p>
|
||||
<ul class="ui list">
|
||||
<li><b><a href="/login">{{ .T "Login" }}</a></b>{{ .T " - in case you don't know where to start" }}</li>
|
||||
<li><b><a href="/doc/rules">{{ .T "Rules" }}</a></b>{{ .T " - in case you haven't already read them" }}</li>
|
||||
<li><b><a href="/doc">{{ .T "Documentation" }}</a></b>{{ .T " - in case, well, you need help doing stuff" }}</li>
|
||||
<li><b><a href="https://status.ripple.moe">{{ .T "Status" }}</a></b>{{ .T " - in case you believe Ripple is down" }}</li>
|
||||
<li><b><a href="{{ .Conf.DiscordServer }}">{{ .T "Discord" }}</a></b>{{ .T " - in case you want to talk with people about Ripple" }}</li>
|
||||
<li><b><a href="https://reddit.com/r/osuripple">{{ .T "Subreddit" }}</a></b>{{ .T " - just in case" }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
Reference in New Issue
Block a user