Change all uses of am-time-ago to the <time-ago> component
This commit is contained in:
parent
33af54d355
commit
2ea06d3df8
13 changed files with 15 additions and 20 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!-- Timing -->
|
||||
<div class="timing" ng-if="showTime">
|
||||
<i class="fa fa-clock-o"></i><span am-time-ago="build.started || 0"></span>
|
||||
<i class="fa fa-clock-o"></i><time-ago datetime="build.started"></time-ago>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<div>
|
||||
<span class="build-state-icon" build="build"></span>
|
||||
<span class="timing">
|
||||
<i class="fa fa-clock-o"></i><span am-time-ago="build.started || 0"></span>
|
||||
<i class="fa fa-clock-o"></i><time-ago datetime="build.started"></time-ago>
|
||||
</span>
|
||||
|
||||
<div class="build-description triggered-build-description" build="build"></div>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
</div>
|
||||
<div class="timing">
|
||||
<i class="fa fa-clock-o"></i>
|
||||
Started: <span am-time-ago="build.started || 0"></span>
|
||||
Started: <time-ago datetime="build.started"></time-ago>
|
||||
</div>
|
||||
<div class="build-progress" build="build"></div>
|
||||
</div>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<td>{{ status.requirement.count }}</td>
|
||||
<td>{{ status.entitlement.product_name }}</td>
|
||||
<td>{{ status.entitlement.count }}</td>
|
||||
<td><span am-time-ago="status.entitlement.expiration.expiration_date" data-title="{{ status.entitlement.expiration.expiration_date }}" bs-tooltip></span></td>
|
||||
<td><time-ago datetime="status.entitlement.expiration.expiration_date"></time-ago></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -147,10 +147,7 @@
|
|||
|
||||
<!-- Last Modified -->
|
||||
<td class="hidden-xs">
|
||||
<span bo-if="tag.last_modified" data-title="{{ tag.last_modified | amDateFormat:'dddd, MMMM Do YYYY, h:mm:ss a' }}" bs-tooltip>
|
||||
<span am-time-ago="tag.last_modified"></span>
|
||||
</span>
|
||||
<span bo-if="!tag.last_modified">Unknown</span>
|
||||
<time-ago datetime="tag.last_modified"></time-ago>
|
||||
</td>
|
||||
|
||||
<!-- Security scanning -->
|
||||
|
|
|
@ -110,12 +110,12 @@
|
|||
</td>
|
||||
<td><span class="max-text" bo-text="key.service"></span></td>
|
||||
<td>
|
||||
<span am-time-ago="key.created_date"></span>
|
||||
<time-ago datetime="key.created_date"></time-ago>
|
||||
</td>
|
||||
<td>
|
||||
<span class="rotation" bo-if="key.expiration_date && willRotate(key)">
|
||||
<i class="fa" ng-class="getExpirationInfo(key).icon"></i>
|
||||
Automatically rotated <span am-time-ago="getRotationDate(key)"></span>
|
||||
Automatically rotated <time-ago datetime="getRotationDate(key)"></time-ago>
|
||||
</span>
|
||||
<span bo-if="!willRotate(key)">
|
||||
<a ng-click="showChangeExpiration(key)">
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<div class="commit-information">
|
||||
<span class="commit-who-when">
|
||||
Authored
|
||||
<span am-time-ago="build.trigger_metadata.commit_info.date"></span>
|
||||
<time-ago datetime="build.trigger_metadata.commit_info.date"></time-ago>
|
||||
<span class="anchor commit-who"
|
||||
href="{{ build.trigger_metadata.commit_info.author.url }}"
|
||||
is-only-text="!build.trigger_metadata.commit_info.author.url"
|
||||
|
|
Reference in a new issue