Skip to content

Commit

Permalink
Add uptime version in the dashboard footer
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Dec 9, 2012
1 parent 0e73938 commit 3487aa7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,11 @@
Uptime Changelog
================

To be released
--------------

* Added uptime version in the footer

2012-12-07, v3.0
----------------

Expand Down
4 changes: 3 additions & 1 deletion app/dashboard/app.js
Expand Up @@ -12,6 +12,7 @@ var Tag = require('../../models/tag');
var TagDailyStat = require('../../models/tagDailyStat');
var TagMonthlyStat = require('../../models/tagMonthlyStat');
var CheckMonthlyStat = require('../../models/checkMonthlyStat');
var moduleInfo = require('../../package.json');

var app = module.exports = express();

Expand Down Expand Up @@ -51,7 +52,8 @@ app.configure('production', function(){
});

app.locals({
addedCss: []
addedCss: [],
version: moduleInfo.version
});

// Routes
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/views/layout.ejs
Expand Up @@ -47,7 +47,7 @@
</section>
<footer class="footer">
<p class="pull-right"><a href="#">Back to top</a></p>
<p>Server powered by <a href="http://nodejs.org/">Node.JS</a> and <a href="http://www.mongodb.org/">MongoDB</a>.</p>
<p>Uptime <%= version %>, powered by <a href="http://nodejs.org/">Node.js</a>, <a href="http://www.mongodb.org/">MongoDB</a>, and <a href="http://twitter.github.com/bootstrap/">Bootstrap</a>.</p>
<p>Code licensed under the <a href="https://raw.github.com/fzaninotto/uptime/master/LICENSE">MIT License</a>. Check the <a href="https://github.com/fzaninotto/uptime">Uptime GitHub repository</a> regularly for updates.
</footer>
</div>
Expand Down

0 comments on commit 3487aa7

Please sign in to comment.