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