Add list of authors; shrink tag sizes

This commit is contained in:
Douglas Gardner 2013-04-21 05:06:26 +00:00
parent 0b44f7afb8
commit e5b2f8c8f2
3 changed files with 15 additions and 4 deletions

View File

@ -4,16 +4,26 @@ var exec = require('child_process').exec,
var pages = function(dbot) { var pages = function(dbot) {
var quoteCat = dbot.db.quoteArrs[dbot.config.name], var quoteCat = dbot.db.quoteArrs[dbot.config.name],
rev, diff, branch; rev, diff, branch, credit, authors = [];
exec("git log --format='%cN¬' | sort -u | tr -d '\n'", function (error, stdout, sderr) {
var credit = stdout.split("¬"); // nobody uses ¬, do they?
for (var i = 0; i < credit.length; i++) {
if ((credit[i].split(" ").length) == 2){
console.log(credit[i]);
authors.push(credit[i]);
}
}
});
exec("git rev-list --all | wc -l", function(error, stdout, stderr) { exec("git rev-list --all | wc -l", function(error, stdout, stderr) {
rev = stdout rev = stdout;
}); });
exec("git rev-parse --abbrev-ref HEAD", function(error, stdout, stderr) { exec("git rev-parse --abbrev-ref HEAD", function(error, stdout, stderr) {
branch = stdout branch = stdout
}); });
exec("git log -1", function(error, stdout, stderr) { exec("git log -1", function(error, stdout, stderr) {
diff = stdout diff = stdout
}); });
@ -34,7 +44,7 @@ var pages = function(dbot) {
res.render('project', { res.render('project', {
"configList": dbot.modules.project.api.configList(), "configList": dbot.modules.project.api.configList(),
"authors": dbot.modules.project.api.getAuthors(), "authors": authors, //dbot.modules.project.api.getAuthors(),
"credits": dbot.t("credits"), "credits": dbot.t("credits"),
"thanks": dbot.t("thanks"), "thanks": dbot.t("thanks"),
"name": dbot.config.name, "name": dbot.config.name,

View File

@ -59,6 +59,7 @@ ul {
text-align:center; text-align:center;
margin-left:0; margin-left:0;
margin-bottom:5px; margin-bottom:5px;
font-size:80%;
} }
li { li {
background-image: linear-gradient(to bottom, #f5ebe2, #f5e6d8); background-image: linear-gradient(to bottom, #f5ebe2, #f5e6d8);

View File

@ -50,7 +50,7 @@ html(lang='#{curr839}')
#{credits} #{credits}
p.center p.center
#{thanks} #{thanks}
ul ul#credits
each author in authors each author in authors
li #{author} li #{author}
section#config section#config