Skip to content

Commit

Permalink
Show dates on cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Teti authored and Josh Prince committed Dec 16, 2015
1 parent c877ac2 commit 20e19c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions client/home.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Template.home.helpers
daysRemaining: ->
calculateDays(getOpenTicketsWithEstimates(), getOpenBugs())

endDate: ->
moment(getEndDate()).format('M/D/YY')

isLoading: ->
Session.get('loading')

Expand All @@ -33,6 +36,9 @@ Template.home.helpers
releaseDate = adjustForTimezone(release.releaseDate)
estimatedCompletionDate <= releaseDate

startDate: ->
moment(getStartDate()).format('M/D/YY')

thereAreBugs: ->
not _(getAllBugs()).isEmpty()

Expand Down
4 changes: 2 additions & 2 deletions client/views/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h3>
<div class="card">
<div id="all-logged-work">
<div class="card-header">
All Hours Distribution (Hours)
All Hours Between {{ startDate }} and {{ endDate }}
</div>
<div class="card-content">
<svg></svg>
Expand All @@ -94,7 +94,7 @@ <h3>
<div class="card">
<div id="non-dev-tickets">
<div class="card-header">
Non-Dev Task Distribution (Hours)
Non-Dev Hours Between {{ startDate }} and {{ endDate }}
</div>
<div class="card-content">
<svg></svg>
Expand Down

0 comments on commit 20e19c1

Please sign in to comment.