From 1c1c5da8f270d78ce53aaabc41be191bf7608478 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sun, 2 Feb 2014 14:38:04 -0500 Subject: [PATCH] isAdmin in header --- public/templates/header.tpl | 4 +++- src/webserver.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/templates/header.tpl b/public/templates/header.tpl index d3ff094b45..d8d9c39743 100644 --- a/public/templates/header.tpl +++ b/public/templates/header.tpl @@ -72,9 +72,11 @@
  • [[global:header.users]]
  • -
  • + +
  • [[global:header.admin]]
  • +
  • [[global:header.search]] diff --git a/src/webserver.js b/src/webserver.js index 13946b6044..8e1381c4ef 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -154,7 +154,7 @@ module.exports.server = server; } user.isAdministrator(uid, function(err, isAdmin) { - templateValues.adminDisplay = isAdmin ? 'show' : 'hide'; + templateValues.isAdmin = isAdmin; translator.translate(templates.header.parse(templateValues), function(template) { callback(null, template);