mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
add WIP
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:
parent
8e3b153f98
commit
0b44f7afb8
@ -33,7 +33,10 @@ var pages = function(dbot) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
res.render('project', {
|
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,
|
"name": dbot.config.name,
|
||||||
"intro": dbot.t("dbotintro", {
|
"intro": dbot.t("dbotintro", {
|
||||||
"botname": dbot.config.name
|
"botname": dbot.config.name
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
* the dbot.
|
* the dbot.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
_ = require('underscore');
|
_ = require('underscore'),
|
||||||
|
exec = require('child_process').exec;
|
||||||
|
|
||||||
var project = function(dbot) {
|
var project = function(dbot) {
|
||||||
|
|
||||||
@ -16,7 +17,7 @@ var project = function(dbot) {
|
|||||||
"username": dbot.config.dent.username
|
"username": dbot.config.dent.username
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
if(dbot.config.dent.dentQuotes) {
|
if(_.has(dbot.config.dent.dentQuotes)) {
|
||||||
list.push(dbot.t("dent-push"));
|
list.push(dbot.t("dent-push"));
|
||||||
}
|
}
|
||||||
if(_.has(dbot.modules,'link')){
|
if(_.has(dbot.modules,'link')){
|
||||||
@ -40,8 +41,15 @@ var project = function(dbot) {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
return list;
|
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){
|
exports.fetch = function(dbot){
|
||||||
|
@ -9,6 +9,12 @@
|
|||||||
"it": "{name} parla {lang} ({langen})",
|
"it": "{name} parla {lang} ({langen})",
|
||||||
"nl": "{name} spreekt {lang} ({langen})"
|
"nl": "{name} spreekt {lang} ({langen})"
|
||||||
},
|
},
|
||||||
|
"thanks": {
|
||||||
|
"en": "With thanks to:"
|
||||||
|
},
|
||||||
|
"credits": {
|
||||||
|
"en": "Authors"
|
||||||
|
},
|
||||||
"pagetitle": {
|
"pagetitle": {
|
||||||
"en": "{botname} web interface",
|
"en": "{botname} web interface",
|
||||||
"fr": "{botname} interface réseau",
|
"fr": "{botname} interface réseau",
|
||||||
|
@ -16,36 +16,43 @@ html(lang='#{curr839}')
|
|||||||
p.intro
|
p.intro
|
||||||
#{dquote}
|
#{dquote}
|
||||||
section#development
|
section#development
|
||||||
h3 #{development}
|
h3 #{development}
|
||||||
h4 #{git}
|
h4 #{git}
|
||||||
p.center
|
p.center
|
||||||
#{revnum}
|
#{revnum}
|
||||||
ul
|
ul
|
||||||
li #{branch}
|
li #{branch}
|
||||||
pre#gitdiff
|
pre#gitdiff
|
||||||
#{diff}
|
#{diff}
|
||||||
h4 #{milestonehead}
|
h4 #{milestonehead}
|
||||||
table#milestones.center
|
table#milestones.center
|
||||||
tr
|
tr
|
||||||
th #{milestonename}
|
th #{milestonename}
|
||||||
th #{milestoneprog}
|
th #{milestoneprog}
|
||||||
th #{openmilestone}
|
th #{openmilestone}
|
||||||
th #{closedmilestone}
|
th #{closedmilestone}
|
||||||
each milestone in milestones
|
each milestone in milestones
|
||||||
- var width = ((milestone.closed_issues/(milestone.open_issues + milestone.closed_issues))*100)
|
- var width = ((milestone.closed_issues/(milestone.open_issues + milestone.closed_issues))*100)
|
||||||
tr(id="milestone"+milestone.number)
|
tr(id="milestone"+milestone.number)
|
||||||
td
|
td
|
||||||
a(href="https://github.com/"+repo+"/issues?milestone="+milestone.number)
|
a(href="https://github.com/"+repo+"/issues?milestone="+milestone.number)
|
||||||
#{milestone.title}
|
#{milestone.title}
|
||||||
td
|
td
|
||||||
div.progress(class=milestone.state)
|
div.progress(class=milestone.state)
|
||||||
div.progress-inner(style="width:"+width+"%")(class=milestone.state)
|
div.progress-inner(style="width:"+width+"%")(class=milestone.state)
|
||||||
|
|
||||||
print #{Math.round(width)+"%"}
|
print #{Math.round(width)+"%"}
|
||||||
td #{milestone.open_issues}
|
td #{milestone.open_issues}
|
||||||
td #{milestone.closed_issues}
|
td #{milestone.closed_issues}
|
||||||
p.center
|
p.center
|
||||||
a(href="https://github.com/"+repo) #{propaganda}
|
a(href="https://github.com/"+repo) #{propaganda}
|
||||||
|
h4
|
||||||
|
#{credits}
|
||||||
|
p.center
|
||||||
|
#{thanks}
|
||||||
|
ul
|
||||||
|
each author in authors
|
||||||
|
li #{author}
|
||||||
section#config
|
section#config
|
||||||
h3 #{config}
|
h3 #{config}
|
||||||
ul
|
ul
|
||||||
|
Loading…
Reference in New Issue
Block a user