diff --git a/static/css/directives/ui/tag-info-sidebar.css b/static/css/directives/ui/tag-info-sidebar.css deleted file mode 100644 index 020625ad0..000000000 --- a/static/css/directives/ui/tag-info-sidebar.css +++ /dev/null @@ -1,5 +0,0 @@ -.tag-info-sidebar .control-bar { - padding-top: 10px; - margin-top: 10px; - border-top: 1px solid #eee; -} \ No newline at end of file diff --git a/static/directives/build-info-bar.html b/static/directives/build-info-bar.html index a25a056c6..b3b9b8479 100644 --- a/static/directives/build-info-bar.html +++ b/static/directives/build-info-bar.html @@ -9,7 +9,7 @@
- +
diff --git a/static/directives/build-mini-status.html b/static/directives/build-mini-status.html index d1dda84cc..28242a090 100644 --- a/static/directives/build-mini-status.html +++ b/static/directives/build-mini-status.html @@ -5,7 +5,7 @@
- +
diff --git a/static/directives/build-status.html b/static/directives/build-status.html index 1ae92d29f..79f25459d 100644 --- a/static/directives/build-status.html +++ b/static/directives/build-status.html @@ -6,7 +6,7 @@
- Started: + Started:
diff --git a/static/directives/config/config-license-field.html b/static/directives/config/config-license-field.html index f414f2aa6..73ddc29fb 100644 --- a/static/directives/config/config-license-field.html +++ b/static/directives/config/config-license-field.html @@ -20,7 +20,7 @@ {{ status.requirement.count }} {{ status.entitlement.product_name }} {{ status.entitlement.count }} - + diff --git a/static/directives/logs-view.html b/static/directives/logs-view.html index 977100498..a56006885 100644 --- a/static/directives/logs-view.html +++ b/static/directives/logs-view.html @@ -62,7 +62,7 @@ - +
diff --git a/static/directives/quay-service-status-bar.html b/static/directives/quay-service-status-bar.html index 84c3e0671..25cfdce50 100644 --- a/static/directives/quay-service-status-bar.html +++ b/static/directives/quay-service-status-bar.html @@ -10,7 +10,7 @@ - Scheduled for {{ scheduled.scheduled_for | amDateFormat:'dddd, MMMM Do YYYY, h:mm A' }}: + Scheduled for : In progress: diff --git a/static/directives/repo-tag-history.html b/static/directives/repo-tag-history.html index ba756f26a..baf651650 100644 --- a/static/directives/repo-tag-history.html +++ b/static/directives/repo-tag-history.html @@ -26,7 +26,7 @@ - {{ entry.date | amDateFormat:'dddd, MMMM Do YYYY' }} + @@ -73,10 +73,14 @@
-
{{ entry.time | amDateFormat:'dddd, MMMM Do YYYY, h:mm:ss a' }}
+
+ +
-
{{ entry.time | amDateFormat:'MMM Do YYYY, h:mm:ss a' }}
+
+ +
diff --git a/static/directives/repo-view/repo-panel-tags.html b/static/directives/repo-view/repo-panel-tags.html index aebd4b2be..cef474017 100644 --- a/static/directives/repo-view/repo-panel-tags.html +++ b/static/directives/repo-view/repo-panel-tags.html @@ -147,10 +147,7 @@ - - - - Unknown + diff --git a/static/directives/service-keys-manager.html b/static/directives/service-keys-manager.html index cfd82507f..b3278df69 100644 --- a/static/directives/service-keys-manager.html +++ b/static/directives/service-keys-manager.html @@ -110,12 +110,12 @@ - + - Automatically rotated + Automatically rotated diff --git a/static/directives/tag-info-sidebar.html b/static/directives/tag-info-sidebar.html deleted file mode 100644 index b4835359d..000000000 --- a/static/directives/tag-info-sidebar.html +++ /dev/null @@ -1,42 +0,0 @@ - diff --git a/static/directives/triggered-build-description.html b/static/directives/triggered-build-description.html index 4da1bd7fa..50199a292 100644 --- a/static/directives/triggered-build-description.html +++ b/static/directives/triggered-build-description.html @@ -40,7 +40,7 @@
Authored - + - - + \ No newline at end of file diff --git a/static/js/directives/ui/expiration-status-view/expiration-status-view.component.html b/static/js/directives/ui/expiration-status-view/expiration-status-view.component.html index 780381518..9bbab4263 100644 --- a/static/js/directives/ui/expiration-status-view/expiration-status-view.component.html +++ b/static/js/directives/ui/expiration-status-view/expiration-status-view.component.html @@ -1,7 +1,7 @@ - + - + diff --git a/static/js/directives/ui/manage-trigger/manage-trigger.component.html b/static/js/directives/ui/manage-trigger/manage-trigger.component.html index 517dc15fd..8da9e2b56 100644 --- a/static/js/directives/ui/manage-trigger/manage-trigger.component.html +++ b/static/js/directives/ui/manage-trigger/manage-trigger.component.html @@ -130,7 +130,7 @@ datafield="last_updated_datetime" templateurl="/static/js/directives/ui/manage-trigger-githost/repository-last-updated.html"> + + + + Unknown + \ No newline at end of file diff --git a/static/js/directives/ui/time-ago/time-ago.component.ts b/static/js/directives/ui/time-ago/time-ago.component.ts new file mode 100644 index 000000000..528a98e22 --- /dev/null +++ b/static/js/directives/ui/time-ago/time-ago.component.ts @@ -0,0 +1,13 @@ +import { Input, Component } from 'ng-metadata/core'; + +/** + * A component that displays how long ago an event occurred, with associated + * tooltip showing the actual time. + */ +@Component({ + selector: 'timeAgo', + templateUrl: '/static/js/directives/ui/time-ago/time-ago.component.html' +}) +export class TimeAgoComponent { + @Input('<') public datetime: any; +} diff --git a/static/js/directives/ui/time-display/time-display.component.html b/static/js/directives/ui/time-display/time-display.component.html new file mode 100644 index 000000000..b88a23910 --- /dev/null +++ b/static/js/directives/ui/time-display/time-display.component.html @@ -0,0 +1 @@ +{{ ::$ctrl.datetime | amDateFormat:$ctrl.getFormat($ctrl.dateOnly) }} \ No newline at end of file diff --git a/static/js/directives/ui/time-display/time-display.component.ts b/static/js/directives/ui/time-display/time-display.component.ts new file mode 100644 index 000000000..fd80c35ce --- /dev/null +++ b/static/js/directives/ui/time-display/time-display.component.ts @@ -0,0 +1,21 @@ +import { Input, Component } from 'ng-metadata/core'; + +/** + * A component that displays when an event occurred. + */ +@Component({ + selector: 'timeDisplay', + templateUrl: '/static/js/directives/ui/time-display/time-display.component.html' +}) +export class TimeDisplayComponent { + @Input('<') public datetime: any; + @Input('<') public dateOnly: boolean; + + private getFormat(dateOnly: boolean): string { + if (dateOnly) { + return 'll'; + } + + return 'llll'; + } +} diff --git a/static/js/quay.module.ts b/static/js/quay.module.ts index 9eaa1683c..f47094cc3 100644 --- a/static/js/quay.module.ts +++ b/static/js/quay.module.ts @@ -37,6 +37,8 @@ import { ManageTriggerComponent } from './directives/ui/manage-trigger/manage-tr import { ClipboardCopyDirective } from './directives/ui/clipboard-copy/clipboard-copy.directive'; import { CorTabsModule } from './directives/ui/cor-tabs/cor-tabs.module'; import { TriggerDescriptionComponent } from './directives/ui/trigger-description/trigger-description.component'; +import { TimeAgoComponent } from './directives/ui/time-ago/time-ago.component'; +import { TimeDisplayComponent } from './directives/ui/time-display/time-display.component'; import { MarkdownModule } from './directives/ui/markdown/markdown.module'; import * as Clipboard from 'clipboard'; @@ -79,6 +81,8 @@ import * as Clipboard from 'clipboard'; ExpirationStatusViewComponent, ClipboardCopyDirective, TriggerDescriptionComponent, + TimeAgoComponent, + TimeDisplayComponent, ], providers: [ ViewArrayImpl, diff --git a/static/partials/build-view.html b/static/partials/build-view.html index 1c6a86d20..d441d8a76 100644 --- a/static/partials/build-view.html +++ b/static/partials/build-view.html @@ -49,7 +49,7 @@
Build started - +
diff --git a/static/partials/search.html b/static/partials/search.html index c800736e3..2b4ecc666 100644 --- a/static/partials/search.html +++ b/static/partials/search.html @@ -29,7 +29,7 @@ first-line-only="true">

- Last Modified: + Last Modified: activity Last Updated: - at {{ syncInfo.last_updated | amDateFormat:'dddd, MMMM Do YYYY, h:mm:ss a' }} + Never