From 0e1f1a28b53451835cc87a74bf93530c65c55145 Mon Sep 17 00:00:00 2001 From: jhnns Date: Fri, 4 Oct 2013 19:25:36 +0200 Subject: [PATCH] add repo and milestone name and milestone description if present --- src/modules/repo.coffee | 2 +- src/styles/app.styl | 3 +++ src/templates/graph.eco | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules/repo.coffee b/src/modules/repo.coffee index 777442b..76280b6 100644 --- a/src/modules/repo.coffee +++ b/src/modules/repo.coffee @@ -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 } diff --git a/src/styles/app.styl b/src/styles/app.styl index c978bef..5778262 100644 --- a/src/styles/app.styl +++ b/src/styles/app.styl @@ -62,6 +62,9 @@ h2 font-size: 20px text-transform: uppercase + p + margin: 0 20px 20px + // where D3 renders to #graph height: 200px diff --git a/src/templates/graph.eco b/src/templates/graph.eco index 392a3b7..e8669bf 100644 --- a/src/templates/graph.eco +++ b/src/templates/graph.eco @@ -1,5 +1,8 @@
-

<%- @name %>

+

<%- @repo %>
<%- @milestone.title %>

+ <% if @milestone.description: %> +

<%- @milestone.description %>

+ <% end %>