From 7dfe4ebbf43d16f8ecc36b8ec8100b840dd96148 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 6 Aug 2022 11:58:40 +0200 Subject: Zap gravatars! --- views/profile.pug | 18 +++++++++++------- views/user.pug | 14 +++++++++----- views/user_list.pug | 5 ----- 3 files changed, 20 insertions(+), 17 deletions(-) (limited to 'views') 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 Disable mail notifications else p Enable mail notifications - p Change password - p Change mail address - p Change user name - p Change profile text + p + | Change password + br + | Change mail address + br + | Change user name + br + | Change profile text p Chat log - p Logout + 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 -- cgit v1.2.3