소스 검색

Don't display sing-in link to connected users

Maxime Quandalle 10 년 전
부모
커밋
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}}}