dbot/views/project/project.jade
Douglas Gardner ce4e69bdd3 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
2013-04-21 16:34:26 +00:00

100 lines
3.7 KiB
Plaintext

!!!
html(lang='#{curr839}')
head
meta(charset='utf-8')
script(type="text/javascript", src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js")
link(rel="stylesheet", type="text/css", href="http://fonts.googleapis.com/css?family=Source+Sans+Pro")
link(rel="stylesheet", type="text/css", href="/bootstrap/css/bootstrap.min.css")
link(rel='stylesheet', type='text/css', href='/styles.css')
link(rel="stylesheet", href="/project.css")
title #{pagetitle}
- var mstone = "milestone"
style(type="text/css")
each milestone in milestones
- current = mstone+milestone.number
- wdth = ((milestone.open_issues/(milestone.open_issues + milestone.closed_issues))*100)
.current { width: wdth% }
body
div.container
div#page
div#title #{pagetitle}
div.container#main
p.intro
#{dquote}
section#git
h2 #{development}
p.center
#{revnum}
pre#gitdiff
#{diff}
h3 #{milestonehead}
table#milestones.center
tr
th #{milestonename}
th #{milestoneprog}
th #{openmilestone}
th #{closedmilestone}
each milestone in milestones
- var wdth = ((milestone.closed_issues/(milestone.open_issues + milestone.closed_issues))*100)
tr(id=mstone+milestone.number)
td
a(href="https://github.com/"+repo+"/issues?milestone="+milestone.number)
#{milestone.title}
td
div.progress(class=milestone.state)
div.progress-inner(style="width:"+wdth+"%")(class=milestone.state)
 
print #{Math.round(wdth)+"%"}
td #{milestone.open_issues}
td #{milestone.closed_issues}
a(#href="https://github.com/"+repo+"/")
#{propaganda}
h3 #{languagetranshead}
table#translations
tr
th #{languagecurr}
th #{languagenati}
unless (curr839 == "en")
th #{languageeng}
th #{languageprog}
th #{languagetrans}
each language in translation
- var w = ((language.count/translation.en.count)*100)
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}
h3 #{credits}
#{thanks}
ul
each author in authors
li
#{author}
section#config
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}