add repo and milestone name and milestone description if present

This commit is contained in:
jhnns 2013-10-04 19:25:36 +02:00
parent b9ecb4db41
commit 0e1f1a28b5
3 changed files with 8 additions and 2 deletions

View File

@ -59,7 +59,7 @@ module.exports = (opts, cb) ->
)
], (err, values) ->
# Render the body.
render 'body', 'graph', name: opts.repo
render 'body', 'graph', { repo: opts.path, milestone: opts.milestone }
# Render the progress.
render '#progress', 'progress', { progress }

View File

@ -62,6 +62,9 @@ h2
font-size: 20px
text-transform: uppercase
p
margin: 0 20px 20px
// where D3 renders to
#graph
height: 200px

View File

@ -1,5 +1,8 @@
<div class="box">
<h1><%- @name %></h2>
<h1><%- @repo %><br><%- @milestone.title %></h1>
<% if @milestone.description: %>
<p><%- @milestone.description %></p>
<% end %>
<div id="graph">
<div id="tooltip"></div>
<div id="svg"></div>