summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/head.pug2
-rw-r--r--views/profile.pug27
-rw-r--r--views/stats_title.pug (renamed from views/game_stats.pug)2
-rw-r--r--views/stats_user.pug (renamed from views/user_stats.pug)0
-rw-r--r--views/tm_seed.pug6
5 files changed, 20 insertions, 17 deletions
diff --git a/views/head.pug b/views/head.pug
index 20fb9aa..da73d4e 100644
--- a/views/head.pug
+++ b/views/head.pug
@@ -14,7 +14,7 @@ mixin altcha_script()
mixin altcha_widget()
if ALTCHA
- altcha-widget(challengeurl="/api/altcha-challenge" hidelogo hidefooter auto="onsubmit" style="--altcha-border-radius:0")
+ altcha-widget(challengeurl="/altcha-challenge" hidelogo hidefooter auto="onsubmit" style="--altcha-border-radius:0")
mixin social(title,description,game)
meta(property="og:title" content=title)
diff --git a/views/profile.pug b/views/profile.pug
index de6e5c4..2f9218d 100644
--- a/views/profile.pug
+++ b/views/profile.pug
@@ -18,7 +18,7 @@ html
+userstats(who, ratings)
- h3 Account
+ h3 Notifications
p Your mail address is #{user.mail}
@@ -32,17 +32,6 @@ html
if mail.notify
p <a href="/account/mail/unsubscribe">Disable mail notifications</a>
- p
- | <a href="/account/change-password">Change password</a>
- br
- | <a href="/account/change-mail">Change mail address</a>
- br
- | <a href="/account/change-name">Change user name</a>
- br
- | <a href="/account/change-about">Change profile text</a>
- p
- | <a href="/account/delete">Delete account</a>
-
if ENABLE_WEBHOOKS
if !webhook
p <a href="/account/webhook">Configure webhook</a>
@@ -55,6 +44,20 @@ html
dt <a href="/account/webhook">Configure webhook</a>
dd= new URL(webhook.url).hostname
+ h3 Account
+
+ p
+ | <a href="/account/change-password">Change password</a>
+ br
+ | <a href="/account/change-mail">Change mail address</a>
+ br
+ | <a href="/account/change-name">Change user name</a>
+ br
+ | <a href="/account/change-about">Change profile text</a>
+
+ p
+ | <a href="/account/delete">Delete account</a>
+
p
form(action="/account/logout" method="post")
button(type="submit") Logout
diff --git a/views/game_stats.pug b/views/stats_title.pug
index 692c30b..2107b93 100644
--- a/views/game_stats.pug
+++ b/views/stats_title.pug
@@ -19,7 +19,7 @@ html
tbody
each row in ratings
tr
- td= row.name
+ td <a class="black" href="user/#{row.name}">#{row.name}</a>
td.r= row.rating
td.r= row.count
td.r= row.last
diff --git a/views/user_stats.pug b/views/stats_user.pug
index 3b201ef..3b201ef 100644
--- a/views/user_stats.pug
+++ b/views/stats_user.pug
diff --git a/views/tm_seed.pug b/views/tm_seed.pug
index 45659c5..abf02c1 100644
--- a/views/tm_seed.pug
+++ b/views/tm_seed.pug
@@ -67,11 +67,11 @@ html
if user
if queue.find(p => p.user_id === user.user_id)
- form(method="post" action="/api/tm/withdraw/" + seed.seed_id + "/" + (ix+1))
+ form(method="post" action="/tm/withdraw/" + seed.seed_id + "/" + (ix+1))
button(disabled) Register
button(type="submit") Withdraw
else if may_register && may_join_seed_level(user.user_id, seed.seed_id, ix+1)
- form(method="post" action="/api/tm/register/" + seed.seed_id + "/" + (ix+1))
+ form(method="post" action="/tm/register/" + seed.seed_id + "/" + (ix+1))
button(type="submit") Register
button(disabled) Withdraw
else
@@ -81,7 +81,7 @@ html
if user.user_id === 1
if queue.length >= seed.pool_size
- form(method="post" action="/api/tm/start/" + seed.seed_id + "/" + (ix+1))
+ form(method="post" action="/tm/start/" + seed.seed_id + "/" + (ix+1))
button(type="submit") Start
else
p <a href="/login">Login</a> or <a href="/signup">sign up</a> to register.