add repo and milestone name and milestone description if present
This commit is contained in:
parent
b9ecb4db41
commit
0e1f1a28b5
|
@ -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 }
|
||||
|
|
|
@ -62,6 +62,9 @@ h2
|
|||
font-size: 20px
|
||||
text-transform: uppercase
|
||||
|
||||
p
|
||||
margin: 0 20px 20px
|
||||
|
||||
// where D3 renders to
|
||||
#graph
|
||||
height: 200px
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue