diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-08-06 11:58:40 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-08-06 11:59:32 +0200 |
commit | 7dfe4ebbf43d16f8ecc36b8ec8100b840dd96148 (patch) | |
tree | bbd032aba2ec31f18b0aa3ed5bf8bafded42b96c /views | |
parent | 6a72d2b30417c68e74b77d8dc6699573f9e033d5 (diff) | |
download | server-7dfe4ebbf43d16f8ecc36b8ec8100b840dd96148.tar.gz |
Zap gravatars!
Diffstat (limited to 'views')
-rw-r--r-- | views/profile.pug | 18 | ||||
-rw-r--r-- | views/user.pug | 14 | ||||
-rw-r--r-- | views/user_list.pug | 5 |
3 files changed, 20 insertions, 17 deletions
diff --git a/views/profile.pug b/views/profile.pug index ca6295c..52bb0c0 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -8,22 +8,26 @@ html include header article h1= SITE_NAME - a(href="https://gravatar.com/"): img.avatar(src=avatar) p Welcome, #{user.name}! p Your mail address is #{user.mail} - br(clear="left") if user.notify p <a href="/unsubscribe">Disable mail notifications</a> else p <a href="/subscribe">Enable mail notifications</a> - p <a href="/change-password">Change password</a> - p <a href="/change-mail">Change mail address</a> - p <a href="/change-name">Change user name</a> - p <a href="/change-about">Change profile text</a> + p + | <a href="/change-password">Change password</a> + br + | <a href="/change-mail">Change mail address</a> + br + | <a href="/change-name">Change user name</a> + br + | <a href="/change-about">Change profile text</a> p <a href="/chat">Chat log</a> - p <a href="/logout">Logout</a> + p + form(action="/logout" method="post") + button(type="submit") Logout diff --git a/views/user.pug b/views/user.pug index c28fbd0..4c26716 100644 --- a/views/user.pug +++ b/views/user.pug @@ -7,17 +7,21 @@ html head include head title= who.name + style. + .about { + white-space: pre-wrap; + font-style: italic; + padding: 8px 12px; + border-left: 4px solid silver; + background-color: whitesmoke; + } body include header article h1= who.name - img.avatar(src=who.avatar width=80 height=80) - if who.about - p(style="white-space:pre-wrap;font-style:italic")= who.about - else - br(clear="left") + p.about= who.about p Member since #{who.ctime}. p Last seen #{who.atime}. diff --git a/views/user_list.pug b/views/user_list.pug index 26c3f82..703ee4d 100644 --- a/views/user_list.pug +++ b/views/user_list.pug @@ -4,9 +4,6 @@ html head include head title User List - style. - td.avatar { padding: 0; width: 80px; } - td.avatar img { display: block; width: 80px; height: 80px; } body include header article @@ -15,14 +12,12 @@ html table thead tr - th Avatar th Name th Member since th Last seen tbody each row in user_list tr - td.avatar: img(src=row.avatar) td.name: a(href="/user/"+row.name)= row.name td= row.ctime td= row.atime |