浏览代码

Don't display sing-in link to connected users

Maxime Quandalle 9 年之前
父节点
当前提交
17a2118b38
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      client/components/main/layouts.jade

+ 3 - 2
client/components/main/layouts.jade

@@ -40,5 +40,6 @@ template(name="notFound")
 template(name="message")
   .big-message.quiet(class=color)
     h1 {{_ label}}
-    with(pathFor route='atSignIn')
-      p {{{_ 'page-maybe-private' this}}}
+    unless currentUser
+      with(pathFor route='atSignIn')
+        p {{{_ 'page-maybe-private' this}}}