mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
a61a2300ab
## Additions + Add current branch to display + Pass Github repo through to the page + Add link to source + Differentiate "progress bar" and "milestone" headers again + Add Git ``h4``, renamed "version control" because it's more interesting to translate + Add progress percentages to the progress bars - Remove redundant short-hash placeholder - Remove extraneous margins on ``ul`` - Simplify progress calculation code * Change some variable names to be more forthcoming about what they represent * Fix links to the milestones * Fix indentation of strings.json
62 lines
2.1 KiB
Plaintext
62 lines
2.1 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}
|
|
body
|
|
div.container
|
|
div#page
|
|
div#title #{pagetitle}
|
|
div.container#main
|
|
p.intro
|
|
#{dquote}
|
|
section#development
|
|
h3 #{development}
|
|
h4 #{git}
|
|
p.center
|
|
#{revnum}
|
|
p.center
|
|
a(href="https://github.com/"+repo) #{propaganda}
|
|
|
|
ul
|
|
li #{branch}
|
|
pre#gitdiff
|
|
#{diff}
|
|
h4 #{milestonehead}
|
|
table#milestones.center
|
|
tr
|
|
th #{milestonename}
|
|
th #{milestoneprog}
|
|
th #{openmilestone}
|
|
th #{closedmilestone}
|
|
each milestone in milestones
|
|
- var width = ((milestone.closed_issues/(milestone.open_issues + milestone.closed_issues))*100)
|
|
tr(id="milestone"+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:"+width+"%")(class=milestone.state)
|
|
|
|
print #{Math.round(width)+"%"}
|
|
td #{milestone.open_issues}
|
|
td #{milestone.closed_issues}
|
|
section#config
|
|
h3 #{config}
|
|
ul
|
|
li #{currlang}
|
|
li #{debugmode}
|
|
h4 #{loadmod}
|
|
ul#modules
|
|
each module in modules
|
|
li #{module}
|
|
section#footer
|
|
p
|
|
#{currver}
|