mirror of
https://github.com/status-im/burnchart.git
synced 2025-01-18 22:51:21 +00:00
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) ->
|
], (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 }
|
||||||
|
@ -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
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user