mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
Merge branch 'master' of https://github.com/reality/depressionbot into borkborkbork
Conflicts: views/project/project.jade
This commit is contained in:
commit
ec300756aa
@ -16,10 +16,10 @@ var project = function(dbot) {
|
|||||||
list.push(dbot.t("dent-account", {
|
list.push(dbot.t("dent-account", {
|
||||||
"username": dbot.config.dent.username
|
"username": dbot.config.dent.username
|
||||||
}));
|
}));
|
||||||
}
|
|
||||||
if(_.has(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')){
|
||||||
if(dbot.config.link.autoTitle){
|
if(dbot.config.link.autoTitle){
|
||||||
list.push(dbot.t("link-autotitle"));
|
list.push(dbot.t("link-autotitle"));
|
||||||
@ -52,7 +52,7 @@ var project = function(dbot) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
var t = {};
|
var t = {};
|
||||||
for (var k = 0; k < str.length; k++) {
|
for (var k = 0; k < translation.length; k++) {
|
||||||
var curr = translation[k];
|
var curr = translation[k];
|
||||||
if (t[curr]) {
|
if (t[curr]) {
|
||||||
t[curr]["count"] += 1;
|
t[curr]["count"] += 1;
|
||||||
|
@ -33,22 +33,18 @@ html(lang='#{curr839}')
|
|||||||
th #{openmilestone}
|
th #{openmilestone}
|
||||||
th #{closedmilestone}
|
th #{closedmilestone}
|
||||||
each milestone in milestones
|
each milestone in milestones
|
||||||
- var mstone = "milestone"
|
|
||||||
- var wd = "width:"
|
|
||||||
- var pc = "%"
|
|
||||||
- var wdth = ((milestone.closed_issues/(milestone.open_issues + milestone.closed_issues))*100)
|
- var wdth = ((milestone.closed_issues/(milestone.open_issues + milestone.closed_issues))*100)
|
||||||
tr(id="milestone"+milestone.number)
|
tr(id="milestone"+milestone.number)
|
||||||
td
|
td
|
||||||
a(href=milestone.url)
|
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=wd+wdth+pc)(class=milestone.state)
|
div.progress-inner(style="width:"+wdth+"%")(class=milestone.state)
|
||||||
|
|
||||||
|
print #{Math.round(wdth)+"%"}
|
||||||
td #{milestone.open_issues}
|
td #{milestone.open_issues}
|
||||||
td #{milestone.closed_issues}
|
td #{milestone.closed_issues}
|
||||||
h4 #{languagetranshead}
|
|
||||||
table
|
|
||||||
a(href="https://github.com/"+repo+"/")
|
a(href="https://github.com/"+repo+"/")
|
||||||
#{propaganda}
|
#{propaganda}
|
||||||
h3 #{languagetranshead}
|
h3 #{languagetranshead}
|
||||||
@ -56,6 +52,7 @@ html(lang='#{curr839}')
|
|||||||
tr
|
tr
|
||||||
th #{languagecurr}
|
th #{languagecurr}
|
||||||
th #{languagenati}
|
th #{languagenati}
|
||||||
|
unless (curr839 == "en")
|
||||||
th #{languageeng}
|
th #{languageeng}
|
||||||
th #{languageprog}
|
th #{languageprog}
|
||||||
th #{languagetrans}
|
th #{languagetrans}
|
||||||
@ -64,29 +61,34 @@ html(lang='#{curr839}')
|
|||||||
tr
|
tr
|
||||||
td #{language.local}
|
td #{language.local}
|
||||||
td #{language.own}
|
td #{language.own}
|
||||||
|
unless (curr839 == "en")
|
||||||
td #{language.english}
|
td #{language.english}
|
||||||
td.prog
|
td.prog
|
||||||
unless (language.iso == curr839)
|
unless (language.iso == curr839)
|
||||||
div.progress(class="open")
|
div.progress(class="open")
|
||||||
div.progress-inner(style="width:"+w+"%")(class="open")
|
div.progress-inner(style="width:"+w+"%")(class="open")
|
||||||
|
|
||||||
|
print #{Math.round(w)+"%"}
|
||||||
else
|
else
|
||||||
div.progress(class="closed")
|
div.progress(class="closed")
|
||||||
div.progress-inner(style="width:"+w+"%")(class="closed")
|
div.progress-inner(style="width:"+w+"%")(class="closed")
|
||||||
|
|
||||||
|
print #{Math.round(w)+"%"}
|
||||||
td #{language.count} / #{translation.en.count}
|
td #{language.count} / #{translation.en.count}
|
||||||
h4 #{credits}
|
h3 #{credits}
|
||||||
#{thanks}
|
#{thanks}
|
||||||
ul#credits
|
ul#credits
|
||||||
each author in authors
|
each author in authors
|
||||||
li
|
li
|
||||||
#{author}
|
#{author}
|
||||||
section#config
|
section#config
|
||||||
h3 #{config}
|
h2 #{config}
|
||||||
ul
|
ul
|
||||||
li #{currlang}
|
li #{currlang}
|
||||||
li #{debugmode}
|
li #{debugmode}
|
||||||
h4 #{loadmod}
|
each config in configList
|
||||||
|
li #{config}
|
||||||
|
h3 #{loadmod}
|
||||||
ul#modules
|
ul#modules
|
||||||
each module in modules
|
each module in modules
|
||||||
li #{module}
|
li #{module}
|
||||||
|
Loading…
Reference in New Issue
Block a user