mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05: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:
parent
6dd753212f
commit
97eb827d47
2 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
<li id="usermenu" class="subnav">
|
<li id="usermenu" class="subnav">
|
||||||
<a href="#" data-toggle="ul" class="dropdown">
|
<a href="#" data-toggle="ul" class="dropdown">
|
||||||
<img class="avatar" src="/public/img/user.jpg" alt="Avatar" />
|
<img class="avatar" src="/public/img/user.jpg" alt="Avatar" />
|
||||||
<span class="name">User Menu</span>
|
<span class="name">Ghost v{{version}}</span>
|
||||||
</a>
|
</a>
|
||||||
<ul class="overlay">
|
<ul class="overlay">
|
||||||
<li class="usermenu-profile"><a href="#">Your Profile</a></li>
|
<li class="usermenu-profile"><a href="#">Your Profile</a></li>
|
||||||
|
|
1
index.js
1
index.js
|
@ -85,6 +85,7 @@ isGhostAdmin = function (req, res, next) {
|
||||||
ghostLocals = function (req, res, next) {
|
ghostLocals = function (req, res, next) {
|
||||||
// Make sure we have a locals value.
|
// Make sure we have a locals value.
|
||||||
res.locals = res.locals || {};
|
res.locals = res.locals || {};
|
||||||
|
res.locals.version = packageInfo.version;
|
||||||
|
|
||||||
if (!res.isAdmin) {
|
if (!res.isAdmin) {
|
||||||
// filter the navigation items
|
// filter the navigation items
|
||||||
|
|
Loading…
Add table
Reference in a new issue