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:
parent
ef2b50863c
commit
c157ddf08c
@ -2,6 +2,8 @@ var exec = require('child_process').exec,
|
|||||||
request = require('request');
|
request = require('request');
|
||||||
|
|
||||||
var pages = function(dbot) {
|
var pages = function(dbot) {
|
||||||
|
var depression = dbot.db.quoteArrs[dbot.config.project.quotecat];
|
||||||
|
|
||||||
var rev;
|
var rev;
|
||||||
exec("git rev-list --all | wc -l", function(a,b,c){rev = b});
|
exec("git rev-list --all | wc -l", function(a,b,c){rev = b});
|
||||||
var diff;
|
var diff;
|
||||||
@ -52,6 +54,7 @@ var pages = function(dbot) {
|
|||||||
"openmilestone": dbot.t("openmilestone"),
|
"openmilestone": dbot.t("openmilestone"),
|
||||||
"closedmilestone": dbot.t("closedmilestone"),
|
"closedmilestone": dbot.t("closedmilestone"),
|
||||||
"development": dbot.t("development"),
|
"development": dbot.t("development"),
|
||||||
|
"dquote": depression[Math.floor(Math.random()*depression.length)],
|
||||||
"diff": diff,
|
"diff": diff,
|
||||||
"pagetitle": dbot.t("pagetitle", {
|
"pagetitle": dbot.t("pagetitle", {
|
||||||
"botname": dbot.config.name
|
"botname": dbot.config.name
|
||||||
|
@ -21,7 +21,7 @@ html(lang='#{curr839}')
|
|||||||
div#title #{pagetitle}
|
div#title #{pagetitle}
|
||||||
div.container#main
|
div.container#main
|
||||||
p.intro
|
p.intro
|
||||||
#{intro}
|
#{dquote}
|
||||||
section#git
|
section#git
|
||||||
h3 #{development}
|
h3 #{development}
|
||||||
p.center
|
p.center
|
||||||
|
Loading…
Reference in New Issue
Block a user