initial import for Open Source 🎉

This commit is contained in:
Jimmy Zelinskie 2019-11-12 11:09:47 -05:00
parent 1898c361f3
commit 9c0dd3b722
2048 changed files with 218743 additions and 0 deletions

View file

@ -0,0 +1,6 @@
<span>
<span ng-if="$ctrl.datetime" data-title="{{ $ctrl.datetime | amDateFormat:'llll' }}" bs-tooltip>
<span am-time-ago="$ctrl.datetime"></span>
</span>
<span ng-if="!$ctrl.datetime">Never</span>
</span>

View file

@ -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;
}