m""                #
 mm#mm  m   m   mmm   #   m          mmm    mmm   m   m  m mm    mmm
   #    #   #  #"  "  # m"          "   #  #   "  "m m"  #"  #  #"  "
   #    #   #  #      #"#           m"""#   """m   #m#   #   #  #
   #    "mm"#  "#mm"  #  "m         "mm"#  "mmm"   "#    #   #  "#mm"
                                                   m"
                                                  ""
This commit is contained in:
Douglas Gardner 2013-04-20 23:27:50 +00:00
parent 8e3b153f98
commit 0b44f7afb8
4 changed files with 60 additions and 36 deletions

View File

@ -33,7 +33,10 @@ var pages = function(dbot) {
}
res.render('project', {
"configList": dbot.modules.project.api.configList(), // what variable do I put here
"configList": dbot.modules.project.api.configList(),
"authors": dbot.modules.project.api.getAuthors(),
"credits": dbot.t("credits"),
"thanks": dbot.t("thanks"),
"name": dbot.config.name,
"intro": dbot.t("dbotintro", {
"botname": dbot.config.name

View File

@ -4,7 +4,8 @@
* the dbot.
*/
_ = require('underscore');
_ = require('underscore'),
exec = require('child_process').exec;
var project = function(dbot) {
@ -16,7 +17,7 @@ var project = function(dbot) {
"username": dbot.config.dent.username
}));
}
if(dbot.config.dent.dentQuotes) {
if(_.has(dbot.config.dent.dentQuotes)) {
list.push(dbot.t("dent-push"));
}
if(_.has(dbot.modules,'link')){
@ -40,8 +41,15 @@ var project = function(dbot) {
}));
}
return list;
},
'getAuthors': function(callback) {
var foo = ['a','b','c'];
exec("git rev-list --all | wc -l", function(error, stdout, stderr){
foo.push(stdout);
});
callback(foo);
}
}
};
}
exports.fetch = function(dbot){

View File

@ -9,6 +9,12 @@
"it": "{name} parla {lang} ({langen})",
"nl": "{name} spreekt {lang} ({langen})"
},
"thanks": {
"en": "With thanks to:"
},
"credits": {
"en": "Authors"
},
"pagetitle": {
"en": "{botname} web interface",
"fr": "{botname} interface réseau",

View File

@ -46,6 +46,13 @@ html(lang='#{curr839}')
td #{milestone.closed_issues}
p.center
a(href="https://github.com/"+repo) #{propaganda}
h4
#{credits}
p.center
#{thanks}
ul
each author in authors
li #{author}
section#config
h3 #{config}
ul