summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-08-02 16:28:13 +0200
committermr <mr@mrautenberg.de>2011-08-02 16:28:13 +0200
commit91b70cba5d1d0045b0db0d9c77f867e68e61fe2e (patch)
tree0357421a07f7ff40fb2ffc3bbb03bed9d1e7f658 /views
parent351c6a84f83d2570660263ed43d0274ea86855e2 (diff)
remove text 'user:' if no A&A
Diffstat (limited to 'views')
-rw-r--r--views/layout.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/layout.haml b/views/layout.haml
index d20b964..c76396d 100644
--- a/views/layout.haml
+++ b/views/layout.haml
@@ -31,8 +31,9 @@
.content
.login_info
- User:
- %b= session[:username]
+ - if session[:username].size > 0
+ User:
+ %b= session[:username]
- if `hostname`.match(/ot-test/)
.notice