diff --git a/src/modules/milestones.coffee b/src/modules/milestones.coffee index d8e3808..f3abb66 100644 --- a/src/modules/milestones.coffee +++ b/src/modules/milestones.coffee @@ -11,10 +11,10 @@ module.exports = # GitHub errors? return cb data.message if data.message # Empty warning? - return cb null, 'No open milestones for repo' unless data.length + return cb null, "No open milestones for repo #{repo.path}" unless data.length # The first milestone should be ending soonest. m = data[0] # Empty milestone? - return cb null, 'No issues for milestone' if m.open_issues + m.closed_issues is 0 + return cb null, "No issues for milestone #{m.title}" if m.open_issues + m.closed_issues is 0 cb null, null, m \ No newline at end of file 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..9167604 100644 --- a/src/styles/app.styl +++ b/src/styles/app.styl @@ -38,8 +38,8 @@ h2 // different classes thereof &.generic, &.info, &.error, &.success + padding: 20px 0 border-top: 4px solid #EAC85D - padding: 20px width: 50% margin: 0 auto @@ -62,6 +62,14 @@ h2 font-size: 20px text-transform: uppercase + h2 + margin: 0 + padding: 0 20px 20px + + p + margin: 0 + padding: 0 20px + // where D3 renders to #graph height: 200px @@ -162,6 +170,7 @@ h2 h2 margin: 10px 0 0 0 + padding: 0 &.closed float: left 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 @@
<%- @milestone.description %>
+ <% end %>