diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/games_active.pug | 7 | ||||
-rw-r--r-- | views/games_finished.pug | 4 | ||||
-rw-r--r-- | views/header.pug | 1 | ||||
-rw-r--r-- | views/index.pug | 2 | ||||
-rw-r--r-- | views/profile.pug | 25 |
5 files changed, 18 insertions, 21 deletions
diff --git a/views/games_active.pug b/views/games_active.pug index 768a92d..342c673 100644 --- a/views/games_active.pug +++ b/views/games_active.pug @@ -3,13 +3,13 @@ doctype html html head include head - title= title + title= SITE_NAME if active_games.length > 0 meta(http-equiv="refresh" content=300) body include header article - h1= title + h1 Your games if ready_games.length > 0 h2 Ready to start @@ -23,11 +23,12 @@ html h2 Active +gametable(1,active_games) + if finished_games.length > 0 h2 Recently finished +gametable(2,finished_games) - p <a href="/games/finished">All finished games</a> + p <a href="/games/finished">All your finished games</a> if open_games.length === 0 && ready_games.length === 0 && active_games.length === 0 && finished_games.length === 0 p Nothing here. diff --git a/views/games_finished.pug b/views/games_finished.pug index 9ae27c4..59c0491 100644 --- a/views/games_finished.pug +++ b/views/games_finished.pug @@ -3,11 +3,11 @@ doctype html html head include head - title= title + title= SITE_NAME body include header article - h1= title + h1 Your finished games if finished_games.length > 0 +gametable(2,finished_games) diff --git a/views/header.pug b/views/header.pug index 9d869f0..c019e9f 100644 --- a/views/header.pug +++ b/views/header.pug @@ -5,6 +5,7 @@ header a(href="/about") About a(href="/forum") Forum if user + a(href="/games/public") Public if user.active > 0 a(href="/games/active") Games (#{user.active}) else diff --git a/views/index.pug b/views/index.pug index acfcbc2..85cc130 100644 --- a/views/index.pug +++ b/views/index.pug @@ -45,6 +45,4 @@ html +gamecover(title.title_id) | #{title.title_name} - p: a(href="/games/public") List of all open and active games. - p!= process.env.SITE_INVITE diff --git a/views/profile.pug b/views/profile.pug index fc9b36b..ca6295c 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -14,19 +14,16 @@ html p Your mail address is #{user.mail} br(clear="left") - p if user.notify - | » <a href="/unsubscribe">Disable mail notifications</a> + p <a href="/unsubscribe">Disable mail notifications</a> else - | » <a href="/subscribe">Enable mail notifications</a> - br - | » - | Change - | <a href="/change-password">password</a>, - | <a href="/change-mail">mail address</a>, - | <a href="/change-name">name</a>, - | or <a href="/change-about">profile text</a>. - br - | » <a href="/chat">Chat log</a> - br - | » <a href="/logout">Logout</a> + 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="/chat">Chat log</a> + + p <a href="/logout">Logout</a> |