forked from GitHub/dbot
Add milestone
+ Bump github + Fix Italian translation of revision count + Add translation of git to strings.json (bonus points if you find a language that needs it)
This commit is contained in:
parent
d3f8e295be
commit
985b53c768
@ -1 +1 @@
|
|||||||
Subproject commit e9e9089f282b0455a481460ebec17a4672617ceb
|
Subproject commit 7e38c6be750a071724763872175f1a9445297b76
|
@ -1,8 +1,19 @@
|
|||||||
var exec = require('child_process').exec;
|
var exec = require('child_process').exec,
|
||||||
|
request = require('request');
|
||||||
|
|
||||||
var pages = function(dbot) {
|
var pages = function(dbot) {
|
||||||
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 gstatus;
|
||||||
|
dbot.api.github.githubStatus(function(a){gstatus = a});
|
||||||
|
|
||||||
|
/* TODO: merge back into github module */
|
||||||
|
var milestones;
|
||||||
|
request("https://api.github.com/repos/" + dbot.config.github.defaultrepo + "/milestones", function(e, r, b){
|
||||||
|
milestones = JSON.parse(b);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'/project': function(req, res) {
|
'/project': function(req, res) {
|
||||||
res.render('project', {
|
res.render('project', {
|
||||||
@ -23,7 +34,15 @@ var pages = function(dbot) {
|
|||||||
}),
|
}),
|
||||||
"modules": dbot.config.moduleNames,
|
"modules": dbot.config.moduleNames,
|
||||||
"loadmod": dbot.t("loadedmodules"),
|
"loadmod": dbot.t("loadedmodules"),
|
||||||
"debugmode": dbot.t("debugmode-" + dbot.config.debugMode)
|
"debugmode": dbot.t("debugmode-" + dbot.config.debugMode),
|
||||||
|
"githubstatus": gstatus,
|
||||||
|
"milestones": milestones,
|
||||||
|
"milestoneprog": dbot.t("milestoneprog"),
|
||||||
|
"config": dbot.t("configoptions"),
|
||||||
|
"milestonename": dbot.t("milestonename"),
|
||||||
|
"openmilestone": dbot.t("openmilestone"),
|
||||||
|
"closedmilestone": dbot.t("closedmilestone")
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -39,18 +39,18 @@
|
|||||||
"en": "{name} is at revision {rev} ({ver})",
|
"en": "{name} is at revision {rev} ({ver})",
|
||||||
"fr": "{name} est à révision {rev} ({ver})",
|
"fr": "{name} est à révision {rev} ({ver})",
|
||||||
"de": "{name} ist in der Revision {rev} ({ver})",
|
"de": "{name} ist in der Revision {rev} ({ver})",
|
||||||
"it": "{name} è il numero di revisione {rev} ({ver})"
|
"it": "{name} il numero di revisione {rev} ({ver})"
|
||||||
},
|
},
|
||||||
"loadedmodules": {
|
"loadedmodules": {
|
||||||
"en": "loaded modules",
|
"en": "loaded modules",
|
||||||
"fr": "modules chargés",
|
"fr": "modules chargés",
|
||||||
"it": "moduli caricati"
|
"it": "moduli caricati"
|
||||||
},
|
},
|
||||||
"configuration": {
|
"configoptions": {
|
||||||
"en": "Configuration",
|
"en": "Configuration",
|
||||||
"fr": "Configuration",
|
"fr": "Configuration",
|
||||||
"de": "Konfiguration",
|
"de": "Konfiguration",
|
||||||
"it": "configuazione"
|
"it": "Configuazione"
|
||||||
},
|
},
|
||||||
"debugmode-true": {
|
"debugmode-true": {
|
||||||
"en": "Debug mode active",
|
"en": "Debug mode active",
|
||||||
@ -63,5 +63,35 @@
|
|||||||
"fr": "debug éteint",
|
"fr": "debug éteint",
|
||||||
"de": "Debug ausgeschaltet",
|
"de": "Debug ausgeschaltet",
|
||||||
"it": "debug spento"
|
"it": "debug spento"
|
||||||
|
},
|
||||||
|
"milestoneprog": {
|
||||||
|
"en": "Progress",
|
||||||
|
"fr": "Progression",
|
||||||
|
"de": "Fortschritt",
|
||||||
|
"it": "sviluppo"
|
||||||
|
},
|
||||||
|
"openmilestone": {
|
||||||
|
"en": "Open",
|
||||||
|
"fr": "Ouvert",
|
||||||
|
"de": "Offen",
|
||||||
|
"it": "Aperto"
|
||||||
|
},
|
||||||
|
"closedmilestone": {
|
||||||
|
"en": "Closed",
|
||||||
|
"fr": "Fermé",
|
||||||
|
"de": "Gesperrt",
|
||||||
|
"it": "Chiuso"
|
||||||
|
},
|
||||||
|
"milestonename": {
|
||||||
|
"en": "Name",
|
||||||
|
"fr": "Nom",
|
||||||
|
"de": "Name",
|
||||||
|
"it": "Nome"
|
||||||
|
},
|
||||||
|
"git": {
|
||||||
|
"en": "Git",
|
||||||
|
"fr": "Git",
|
||||||
|
"de": "Git",
|
||||||
|
"it": "Git"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,9 +5,20 @@ block content
|
|||||||
section#git
|
section#git
|
||||||
h3 Git
|
h3 Git
|
||||||
p
|
p
|
||||||
#{revnum}
|
#{revnum}
|
||||||
|
h4 #{milestoneprog}
|
||||||
|
table
|
||||||
|
tr
|
||||||
|
th #{milestonename}
|
||||||
|
th #{openmilestone}
|
||||||
|
th #{closedmilestone}
|
||||||
|
each milestone in milestones
|
||||||
|
tr
|
||||||
|
td #{milestone.title}
|
||||||
|
td #{milestone.open_issues}
|
||||||
|
td #{milestone.closed_issues}
|
||||||
section#config
|
section#config
|
||||||
h3 Configuration
|
h3 #{config}
|
||||||
ul
|
ul
|
||||||
li #{currlang}
|
li #{currlang}
|
||||||
li #{debugmode}
|
li #{debugmode}
|
||||||
|
Loading…
Reference in New Issue
Block a user