3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

Added random quote to header

This commit is contained in:
Douglas Gardner 2013-04-18 16:54:09 +00:00
parent ef2b50863c
commit c157ddf08c
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,8 @@ var exec = require('child_process').exec,
request = require('request');
var pages = function(dbot) {
var depression = dbot.db.quoteArrs[dbot.config.project.quotecat];
var rev;
exec("git rev-list --all | wc -l", function(a,b,c){rev = b});
var diff;
@ -52,6 +54,7 @@ var pages = function(dbot) {
"openmilestone": dbot.t("openmilestone"),
"closedmilestone": dbot.t("closedmilestone"),
"development": dbot.t("development"),
"dquote": depression[Math.floor(Math.random()*depression.length)],
"diff": diff,
"pagetitle": dbot.t("pagetitle", {
"botname": dbot.config.name

View File

@ -21,7 +21,7 @@ html(lang='#{curr839}')
div#title #{pagetitle}
div.container#main
p.intro
#{intro}
#{dquote}
section#git
h3 #{development}
p.center