summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-06 11:51:08 +0200
committerTor Andersson <tor@ccxvii.net>2023-04-18 10:06:13 +0200
commit710b68aa2bcb9e2f552ab61e0e842f46501d75db (patch)
tree14ad9ef777a8985643cac151af078cce8d1141c6 /views
parent7bdd3abc3ddff42ee1640c8757509dc5d36d604e (diff)
downloadserver-710b68aa2bcb9e2f552ab61e0e842f46501d75db.tar.gz
Some cleanups.
Clean up stats page. Remove user list page. Remove duplicate remove contact page. Fix silly bug. oops!
Diffstat (limited to 'views')
-rw-r--r--views/stats.pug4
-rw-r--r--views/user.pug4
-rw-r--r--views/user_list.pug23
3 files changed, 3 insertions, 28 deletions
diff --git a/views/stats.pug b/views/stats.pug
index 65649b3..4d275b0 100644
--- a/views/stats.pug
+++ b/views/stats.pug
@@ -22,9 +22,7 @@ html
th
a(href="/"+row.title_id)= row.title_name
unless row.scenario === "Standard"
- | , #{row.scenario}
- unless row.options === "None"
- | , #{row.options}
+ | &#x2013; #{row.scenario}
th= row.total
tbody
- for (let i=0; i<row.result_role.length; ++i)
diff --git a/views/user.pug b/views/user.pug
index 545d1ab..c11f865 100644
--- a/views/user.pug
+++ b/views/user.pug
@@ -31,9 +31,9 @@ html
a(href="/message/send/"+who.name) Send message
br
if relation > 0
- a(href="/contact/remove-user/"+who.name) Remove from friends
+ a(href="/contact/remove/"+who.name) Remove from friends
else if relation < 0
- a(href="/contact/remove-user/"+who.name) Remove from blacklist
+ a(href="/contact/remove/"+who.name) Remove from blacklist
else
a(href="/contact/add-friend/"+who.name) Add to friends
br
diff --git a/views/user_list.pug b/views/user_list.pug
deleted file mode 100644
index 703ee4d..0000000
--- a/views/user_list.pug
+++ /dev/null
@@ -1,23 +0,0 @@
-//- vim:ts=4:sw=4:
-doctype html
-html
- head
- include head
- title User List
- body
- include header
- article
- h1 User List
-
- table
- thead
- tr
- th Name
- th Member since
- th Last seen
- tbody
- each row in user_list
- tr
- td.name: a(href="/user/"+row.name)= row.name
- td= row.ctime
- td= row.atime