<NME> index.hbs
<BEF> <div class="wrapper project-index">
  <div class="badge">
    <img src="/assets/images/badges/projects/{{model.id}}.png" title="{{model.description}}" alt="{{model.description}}">
  </div>

  <h1>{{model.name}}</h1>

  <p>Status: <span class="state">{{model.state}}</span></p>
  <p>Goal: <strong>{{model.description}}</strong></p>

  {{htmlDescription}}

  {{#if model.hasTimer}}
  <div class="remaining">
    Projects Ends In: {{liquid-bind daysRemaining}} days, {{liquid-bind hoursRemaining}}:{{liquid-bind minutesRemaining}}:{{liquid-bind secondsRemaining}}
  </div>
  {{/if}}

  <div class="progress-numbers">
    {{#if isIncomplete}}
      <div class="prog-num">
        <span class="metric">Total:</span>
         {{project.totalTargetsCount}}
      </div>
      <div class="prog-num">
        <span class="metric">Pending:</span> {{project.pendingTargetsCount}}
      </div>
    {{/if}}
    <div class="prog-num">
      <span class="metric">Fixed:</span>
      {{project.fixedTargetsCount}}
    </div>
    {{#if isIncomplete}}
      {{#if project.hasTimer}}
      <div class="prog-num {{if differenceIsNegative 'negative' 'positive'}}">
        <span class="metric">Difference:</span>
        {{differenceFromExpected}}
      </div>
      {{/if}}
    {{/if}}
    {{#if isIncomplete}}
    <div class="progress-bar">
      <div class="progress">
        <div class="bar positive" style={{model.percentageThrough}}>
        </div>
      </div>
    </div>
    {{/if}}
    {{#if model.hasTimer}}
    <div class="progress-bar">
      <div class="progress">
        <div class="bar neutral" style={{percentageExpectedFixed}}>
        </div>
      </div>
    </div>
    {{/if}}
  </div>

  {{#if isComplete}}
  {{else}}
    {{#if canHelpOut}}
    {{else}}
      {{#if currentUser}}
        {{#if model.canHelpOut}}
          <button class="positive" {{action "randomTarget"}}>Help Out!</button>
        {{else}}
          <button class="positive" {{action "randomProposal"}}>Vote!</button>
        {{/if}}
      {{else}}
        <button class="positive" {{action "signUp"}}>Help Out!</button>
      {{/if}}
    {{/if}}
  {{/if}}
</div>

<MSG> Make seconds disappear until last day, see wordset/wordset#79

<DFF> @@ -12,7 +12,12 @@
 
   {{#if model.hasTimer}}
   <div class="remaining">
-    Projects Ends In: {{liquid-bind daysRemaining}} days, {{liquid-bind hoursRemaining}}:{{liquid-bind minutesRemaining}}:{{liquid-bind secondsRemaining}}
+    Project Ends In:
+    {{#if lessThanOneDay}}
+      {{liquid-bind hoursRemaining}} hrs, {{liquid-bind minutesRemaining}} mins, {{liquid-bind secondsRemaining}}s
+    {{else}}
+      {{liquid-bind daysRemaining}} days, {{liquid-bind hoursRemaining}} hrs, {{liquid-bind minutesRemaining}} mins
+    {{/if}}
   </div>
   {{/if}}
 

{'commit': 'diff --git a/app/components/project-card.js b/app/components/project-card.js\nindex 811913c..8cb6b19 100644\n--- a/app/components/project-card.js\n+++ b/app/components/project-card.js\n@@ -7,4 +7,5 @@ export default Ember.Component.extend(ProjectCountdown, {\n   link: true,\n   timer: null,\n \n+\n });\ndiff --git a/app/mixins/project-countdown.js b/app/mixins/project-countdown.js\nindex 9b08004..6b946c2 100644\n--- a/app/mixins/project-countdown.js\n+++ b/app/mixins/project-countdown.js\n@@ -16,6 +16,9 @@ export default Ember.Mixin.create({\n   daysRemaining: function() {\n     return Math.floor(this.get("timeRemaining") / 86400);\n   }.property("timeRemaining"),\n+  lessThanOneDay: function() {\n+    return this.get("daysRemaining") < 1;\n+  }.property("daysRemaining"),\n   expectedFixed: function() {\n     var elapsedTime = ((new Date()) - this.get("project.startedAt")) / 1000;\n     return Math.floor(elapsedTime / this.get("project.spaceBetweenProposals"));\ndiff --git a/app/templates/components/project-card.hbs b/app/templates/components/project-card.hbs\nindex bbad991..dc4f655 100644\n--- a/app/templates/components/project-card.hbs\n+++ b/app/templates/components/project-card.hbs\n@@ -17,7 +17,12 @@\n \n   {{#if project.hasTimer}}\n     <div class="remaining">\n-      Projects Ends In: {{liquid-bind daysRemaining}} days, {{liquid-bind hoursRemaining}}:{{liquid-bind minutesRemaining}}:{{liquid-bind secondsRemaining}}\n+      Projects Ends In:\n+      {{#if lessThanOneDay}}\n+        {{liquid-bind hoursRemaining}} hrs, {{liquid-bind minutesRemaining}} mins, {{liquid-bind secondsRemaining}}s\n+      {{else}}\n+        {{liquid-bind daysRemaining}} days, {{liquid-bind hoursRemaining}} hrs, {{liquid-bind minutesRemaining}} mins\n+      {{/if}}\n     </div>\n   {{else}}\n     <div class="description">\ndiff --git a/app/templates/components/project-info.hbs b/app/templates/components/project-info.hbs\nindex 3d745dc..a06d020 100644\n--- a/app/templates/components/project-info.hbs\n+++ b/app/templates/components/project-info.hbs\n@@ -18,7 +18,12 @@\n \n     {{#if project.hasTimer}}\n       <div class="remaining">\n-        Projects Ends In: {{liquid-bind daysRemaining}} days, {{liquid-bind hoursRemaining}}:{{liquid-bind minutesRemaining}}:{{liquid-bind secondsRemaining}}\n+        Projects Ends In:\n+        {{#if lessThanOneDay}}\n+          {{liquid-bind hoursRemaining}} hrs, {{liquid-bind minutesRemaining}} mins, {{liquid-bind secondsRemaining}}s\n+        {{else}}\n+          {{liquid-bind daysRemaining}} days, {{liquid-bind hoursRemaining}} hrs, {{liquid-bind minutesRemaining}} mins\n+        {{/if}}\n       </div>\n     {{else}}\n       <div class="description">\ndiff --git a/app/templates/project/index.hbs b/app/templates/project/index.hbs\nindex 2376733..bacf2b7 100644\n--- a/app/templates/project/index.hbs\n+++ b/app/templates/project/index.hbs\n@@ -12,7 +12,12 @@\n \n   {{#if model.hasTimer}}\n   <div class="remaining">\n-    Projects Ends In: {{liquid-bind daysRemaining}} days, {{liquid-bind hoursRemaining}}:{{liquid-bind minutesRemaining}}:{{liquid-bind secondsRemaining}}\n+    Project Ends In:\n+    {{#if lessThanOneDay}}\n+      {{liquid-bind hoursRemaining}} hrs, {{liquid-bind minutesRemaining}} mins, {{liquid-bind secondsRemaining}}s\n+    {{else}}\n+      {{liquid-bind daysRemaining}} days, {{liquid-bind hoursRemaining}} hrs, {{liquid-bind minutesRemaining}} mins\n+    {{/if}}\n   </div>\n   {{/if}}\n \n', 'commit_subject': 'Make seconds disappear until last day, see wordset/wordset#79', 'repo_name': 'wordset/wordset-ui', 'committer': {'name': 'Michael JL Catlin', 'email': '8499b8426e7f98d08e17d41adc48189f2531d06a@gmail.com', 'time_sec': '1438201056', 'tz_offset': '-420', 'date': {'seconds': '1438201056'}}, 'commit_tree': '598441cb2798e7af4ac274ee0b48ae92209d91df', 'commit_message': 'Make seconds disappear until last day, see wordset/wordset#79\n', 'language_name': 'Shell', 'license': 'mit', 'hunks': '@@ -12,7 +12,12 @@\n \n   {{#if model.hasTimer}}\n   <div class="remaining">\n-    Projects Ends In: {{liquid-bind daysRemaining}} days, {{liquid-bind hoursRemaining}}:{{liquid-bind minutesRemaining}}:{{liquid-bind secondsRemaining}}\n+    Project Ends In:\n+    {{#if lessThanOneDay}}\n+      {{liquid-bind hoursRemaining}} hrs, {{liquid-bind minutesRemaining}} mins, {{liquid-bind secondsRemaining}}s\n+    {{else}}\n+      {{liquid-bind daysRemaining}} days, {{liquid-bind hoursRemaining}} hrs, {{liquid-bind minutesRemaining}} mins\n+    {{/if}}\n   </div>\n   {{/if}}\n \n', 'addition_count': 6, 'deletion_count': 1, 'src_file': 'a/app/templates/project/index.hbs', 'tgt_file': 'b/app/templates/project/index.hbs', 'file_extension': '.hbs', 'before_file': '<div class="wrapper project-index">\n  <div class="badge">\n    <img src="/assets/images/badges/projects/{{model.id}}.png" title="{{model.description}}" alt="{{model.description}}">\n  </div>\n\n  <h1>{{model.name}}</h1>\n\n  <p>Status: <span class="state">{{model.state}}</span></p>\n  <p>Goal: <strong>{{model.description}}</strong></p>\n\n  {{htmlDescription}}\n\n  {{#if model.hasTimer}}\n  <div class="remaining">\n    Projects Ends In: {{liquid-bind daysRemaining}} days, {{liquid-bind hoursRemaining}}:{{liquid-bind minutesRemaining}}:{{liquid-bind secondsRemaining}}\n  </div>\n  {{/if}}\n\n  <div class="progress-numbers">\n    {{#if isIncomplete}}\n      <div class="prog-num">\n        <span class="metric">Total:</span>\n         {{project.totalTargetsCount}}\n      </div>\n      <div class="prog-num">\n        <span class="metric">Pending:</span> {{project.pendingTargetsCount}}\n      </div>\n    {{/if}}\n    <div class="prog-num">\n      <span class="metric">Fixed:</span>\n      {{project.fixedTargetsCount}}\n    </div>\n    {{#if isIncomplete}}\n      {{#if project.hasTimer}}\n      <div class="prog-num {{if differenceIsNegative \'negative\' \'positive\'}}">\n        <span class="metric">Difference:</span>\n        {{differenceFromExpected}}\n      </div>\n      {{/if}}\n    {{/if}}\n    {{#if isIncomplete}}\n    <div class="progress-bar">\n      <div class="progress">\n        <div class="bar positive" style={{model.percentageThrough}}>\n        </div>\n      </div>\n    </div>\n    {{/if}}\n    {{#if model.hasTimer}}\n    <div class="progress-bar">\n      <div class="progress">\n        <div class="bar neutral" style={{percentageExpectedFixed}}>\n        </div>\n      </div>\n    </div>\n    {{/if}}\n  </div>\n\n  {{#if isComplete}}\n  {{else}}\n    {{#if canHelpOut}}\n    {{else}}\n      {{#if currentUser}}\n        {{#if model.canHelpOut}}\n          <button class="positive" {{action "randomTarget"}}>Help Out!</button>\n        {{else}}\n          <button class="positive" {{action "randomProposal"}}>Vote!</button>\n        {{/if}}\n      {{else}}\n        <button class="positive" {{action "signUp"}}>Help Out!</button>\n      {{/if}}\n    {{/if}}\n  {{/if}}\n</div>\n', 'message': 'Make seconds disappear until last day, see wordset/wordset#79\n', 'author_name': 'Michael JL Catlin', 'lang': 'hbs'}