From c9e61da7f01734d9b29d32037f1e4e2895b5b3c8 Mon Sep 17 00:00:00 2001 From: Alicia Date: Sun, 24 Feb 2019 11:35:42 +0000 Subject: [PATCH] Add registration form to login and allow everyone to see listing --- templates/navbar.html | 7 +++ templates/register/register.html | 90 +++++++++++++++++--------------- 2 files changed, 56 insertions(+), 41 deletions(-) diff --git a/templates/navbar.html b/templates/navbar.html index 3bd11c7..53e8962 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -41,6 +41,13 @@ {{ navbarItem .Path (.T "Request beatmap ranking") "/beatmaps/rank_request" }} + {{ else }} + {{ end }} {{ navbarItem .Path (.T "Donate" | printf "%s") "/donate" }} {{ if $isAdmin }}{{ navbarItem .Path (.T "RAP" | printf "%s") "https://old.yozora.pw/p/100" }}{{ end }} diff --git a/templates/register/register.html b/templates/register/register.html index 4d57e42..fbe5805 100644 --- a/templates/register/register.html +++ b/templates/register/register.html @@ -2,52 +2,60 @@
{{ $regEnabled := qb "SELECT value_int FROM system_settings WHERE name = 'registrations_enabled'" }} {{ if .Context.User.ID }} -
- {{ .T "You're already logged in!" }} -
+
+ {{ .T "You're already logged in!" }} +
{{ else if not ($regEnabled.value_int.Bool) }} -
- {{ .T "Sorry, it's not possible to register at the moment. Please try again later." }} -
+
+ {{ .T "Sorry, it's not possible to register at the moment. Please try again later." }} +
{{ else }} - {{ if eq (.Gin.Query "stopsign") "1" }} -
- {{ .T "Remember: this seems like it's your second account! Do not multiaccount, or you're likely to get restricted!" }} + {{ if eq (.Gin.Query "stopsign") "1" }} +
+ {{ .T "Remember: this seems like it's your second account! Do not multiaccount, or you're likely to get restricted!" }} +
+ {{ end }} +
+
Don't have a code? Apply here!
+
+
+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ {{ with config "RecaptchaSite" }} +
+
+
+ {{ end }} + {{ ieForm .Gin }} +
- {{ end }} -
-
-
-
-
- - -
-
- - -
-
- - -
-
- - -
- {{ with config "RecaptchaSite" }} -
-
-
- {{ end }} - {{ ieForm .Gin }} -
-
-
- -
+
+
+
{{ end }}
{{ end }} \ No newline at end of file