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) -> ], (err, values) ->
# Render the body. # Render the body.
render 'body', 'graph', name: opts.repo render 'body', 'graph', { repo: opts.path, milestone: opts.milestone }
# Render the progress. # Render the progress.
render '#progress', 'progress', { progress } render '#progress', 'progress', { progress }

View File

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

View File

@ -1,5 +1,8 @@
<div class="box"> <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="graph">
<div id="tooltip"></div> <div id="tooltip"></div>
<div id="svg"></div> <div id="svg"></div>