summaryrefslogtreecommitdiff
path: root/views/info.ejs
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-09 22:33:53 +0100
committerTor Andersson <tor@ccxvii.net>2021-11-09 22:59:49 +0100
commit70289448796f6649d74a2ec22b300c3b0075b762 (patch)
tree87959c4ef3469070bdb36db2ea1de723553a83ef /views/info.ejs
parent86ee8f02d4230199378eb055a5a89c15844208c9 (diff)
downloadserver-70289448796f6649d74a2ec22b300c3b0075b762.tar.gz
Show user profiles.
Diffstat (limited to 'views/info.ejs')
-rw-r--r--views/info.ejs9
1 files changed, 6 insertions, 3 deletions
diff --git a/views/info.ejs b/views/info.ejs
index 778974e..159e732 100644
--- a/views/info.ejs
+++ b/views/info.ejs
@@ -1,4 +1,7 @@
<%- include('header', { title: title.title_name, refresh: (user ? 300 : 0) }) %>
+<style>
+td.names a { color: black; text-decoration: none; }
+</style>
<img class="logo" src="/<%= title.title_id %>/cover.jpg">
<%- include('../public/' + title.title_id + '/about.html') %>
<p>
@@ -15,7 +18,7 @@ Read more about the game on
<tr>
<td><%= row.game_id %>
<td><%= row.scenario %>
-<td><%= row.player_names || row.owner_name %>
+<td class="names"><%- row.player_names || `<a href="/user/${row.owner_name}">${row.owner_name}</a>` %>
<td><%= row.description %>
<td class="nowrap"><%= row.ctime %>
<td><a href="/join/<%= row.game_id %>">Join</a>
@@ -35,7 +38,7 @@ Read more about the game on
<tr>
<td><%= row.game_id %>
<td><%= row.scenario %>
-<td><%= row.player_names %>
+<td class="names"><%- row.player_names %>
<td><%= row.description %>
<td class="nowrap"><%= row.mtime %>
<td class="<%= row.is_your_turn ? "is_your_turn" : "" %>"><%= row.active_role %>
@@ -52,7 +55,7 @@ Read more about the game on
<tr>
<td><%= row.game_id %>
<td><%= row.scenario %>
-<td><%= row.player_names %>
+<td class="names"><%- row.player_names %>
<td><%= row.description %>
<td class="nowrap"><%= row.mtime %>
<td><%= row.result %>