From ce4e69bdd3409690322d0b79526092cc12d4f84a Mon Sep 17 00:00:00 2001 From: Douglas Gardner Date: Sun, 21 Apr 2013 16:34:26 +0000 Subject: [PATCH] bought project module back up to speed * Added check that ``dent`` was loaded before looking for related configuration settings. * Fixed ``h3``s that should have been ``h2``s, and ``h4``s that should have been ``h3``s * Added larger margins for headings * Forced the ``td``s of the translations table to be their normal capitalisation * Readded some translations * Fixed links to repos * Fixed links to issues * Reimplemented configList --- modules/project/pages.js | 2 +- modules/project/project.js | 6 +++--- public/project.css | 11 +++++++++++ views/project/project.jade | 32 ++++++++++++++++++-------------- 4 files changed, 33 insertions(+), 18 deletions(-) diff --git a/modules/project/pages.js b/modules/project/pages.js index ed94690..f248dcd 100644 --- a/modules/project/pages.js +++ b/modules/project/pages.js @@ -92,7 +92,7 @@ var pages = function(dbot) { "languageeng": dbot.t("en"), "languageprog": dbot.t("langhead-progress"), "languagetrans": dbot.t("langhead-translations"), - "languagetranshead": dbot.t("translations") + "languagetranshead": dbot.t("translations"), }); }, }; diff --git a/modules/project/project.js b/modules/project/project.js index 59a2fbe..5bb291e 100644 --- a/modules/project/project.js +++ b/modules/project/project.js @@ -16,9 +16,9 @@ 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.config.dent.dentQuotes)) { + list.push(dbot.t("dent-push")); + } } if(_.has(dbot.modules,'link')){ if(dbot.config.link.autoTitle){ diff --git a/public/project.css b/public/project.css index 3e71250..736b633 100644 --- a/public/project.css +++ b/public/project.css @@ -63,3 +63,14 @@ li { #footer { font-size:80%; } +h2 { + margin-top:40px; + margin-bottom:30px; +} +h3 { + margin-top:30px; + margin-bottom:20px; +} +#translations td { + text-transform:none; +} diff --git a/views/project/project.jade b/views/project/project.jade index fa865d7..22d5c93 100644 --- a/views/project/project.jade +++ b/views/project/project.jade @@ -22,12 +22,12 @@ html(lang='#{curr839}') p.intro #{dquote} section#git - h3 #{development} + h2 #{development} p.center #{revnum} pre#gitdiff #{diff} - h4 #{milestoneprog} + h3 #{milestonehead} table#milestones.center tr th #{milestonename} @@ -38,7 +38,7 @@ html(lang='#{curr839}') - var wdth = ((milestone.closed_issues/(milestone.open_issues + milestone.closed_issues))*100) tr(id=mstone+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) @@ -47,8 +47,10 @@ html(lang='#{curr839}') print #{Math.round(wdth)+"%"} td #{milestone.open_issues} td #{milestone.closed_issues} - h4 #{languagetranshead} - table + a(#href="https://github.com/"+repo+"/") + #{propaganda} + h3 #{languagetranshead} + table#translations tr th #{languagecurr} th #{languagenati} @@ -75,21 +77,23 @@ html(lang='#{curr839}')   print #{Math.round(w)+"%"} td #{language.count} / #{translation.en.count} - h4 #{credits} + h3 #{credits} #{thanks} ul each author in authors li #{author} section#config - h3 #{config} - ul - li #{currlang} - li #{debugmode} - h4 #{loadmod} - ul#modules - each module in modules - li #{module} + h2 #{config} + ul + li #{currlang} + li #{debugmode} + each config in configList + li #{config} + h3 #{loadmod} + ul#modules + each module in modules + li #{module} section#footer p #{currver}