Change to use the <time-display> component

This commit is contained in:
Joseph Schorr 2017-11-27 12:56:26 +02:00
parent 7d55ff9c67
commit 89d635f6cf
2 changed files with 7 additions and 3 deletions

View file

@ -10,7 +10,7 @@
<i class="fa fa-calendar" style="margin-right: 6px;"></i>
<span ng-switch on="scheduled.status" style="vertical-align: middle">
<span ng-switch-when="scheduled">
Scheduled for {{ scheduled.scheduled_for | amDateFormat:'dddd, MMMM Do YYYY, h:mm A' }}:
Scheduled for <time-display datetime="scheduled.scheduled_for"></time-display>:
</span>
<b ng-switch-when="in_progress" style="color: #FDFFB9;">
In progress:

View file

@ -73,10 +73,14 @@
</span>
</span>
</div>
<div class="history-datetime-small">{{ entry.time | amDateFormat:'dddd, MMMM Do YYYY, h:mm:ss a' }}</div>
<div class="history-datetime-small">
<time-display datetime="entry.time"></time-display>
</div>
</td>
<td ng-if="!entry.date_break" class="datetime-col hidden-sm hidden-xs">
<div class="history-datetime">{{ entry.time | amDateFormat:'MMM Do YYYY, h:mm:ss a' }}</div>
<div class="history-datetime">
<time-display datetime="entry.time"></time-display>
</div>
</td>
<td class="revert-col hidden-xs hidden-sm">
<div ng-if="!entry.date_break && repository.can_write" class="history-revert">