« get me outta code hell

Link to own profile page in header - scratchrlol - Simple HTML-based Scratch client
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-11-14 16:45:45 -0400
committerFlorrie <towerofnix@gmail.com>2018-11-14 16:45:45 -0400
commit54179415b7a4835903fbcb129159266a73733fdc (patch)
tree2e02c2b3fc32fcd32fb8c8d612f6752c19e4a11d
parenta64f76d7cc2ff52d5b12255e1fe55bc7411ad81f (diff)
Link to own profile page in header
-rwxr-xr-xindex.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index bd4208e..5b14d51 100755
--- a/index.js
+++ b/index.js
@@ -28,7 +28,7 @@ const page = async (request, response, text) => {
       <body>
         <header>
           ${cookies.username ? fixWS`
-            <p>You are logged in as ${cookies.username}. (<a href="/logout">Log out.</a>) You have ${'' + notificationCount} unread <a href="/notifications">${pluralize('notification', notificationCount)}</a>.</p>`
+            <p>You are logged in as ${templates.user(cookies.username)}. (<a href="/logout">Log out.</a>) You have ${'' + notificationCount} unread <a href="/notifications">${pluralize('notification', notificationCount)}</a>.</p>`
           : fixWS`
             <p>You are not logged in. <a href="/login">Log in.</a></p>
           `}