2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Replaced user menu label with current Ghost version no

closes #286
- added current version as an app.local variable available on both client and server
- swapped out the user menu label for the version no
This commit is contained in:
Hannah Wolfe 2013-07-30 12:56:16 +01:00
parent 6dd753212f
commit 97eb827d47
2 changed files with 2 additions and 1 deletions

View file

@ -10,7 +10,7 @@
<li id="usermenu" class="subnav">
<a href="#" data-toggle="ul" class="dropdown">
<img class="avatar" src="/public/img/user.jpg" alt="Avatar" />
<span class="name">User Menu</span>
<span class="name">Ghost v{{version}}</span>
</a>
<ul class="overlay">
<li class="usermenu-profile"><a href="#">Your Profile</a></li>

View file

@ -85,6 +85,7 @@ isGhostAdmin = function (req, res, next) {
ghostLocals = function (req, res, next) {
// Make sure we have a locals value.
res.locals = res.locals || {};
res.locals.version = packageInfo.version;
if (!res.isAdmin) {
// filter the navigation items