mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
Add list of authors; shrink tag sizes
This commit is contained in:
parent
0b44f7afb8
commit
e5b2f8c8f2
@ -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,
|
||||||
|
@ -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);
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user