diff --git a/app/helpers/pretty-date.coffee b/app/helpers/pretty-date.coffee new file mode 100644 index 00000000..b100b1db --- /dev/null +++ b/app/helpers/pretty-date.coffee @@ -0,0 +1,7 @@ +`import { timeAgoInWords, safe } from 'travis/utils/helpers'` +`import Ember from "ember"` + +helper = Ember.Handlebars.makeBoundHelper (value, options) -> + safe moment(value).format('MMMM D, YYYY H:mm:ss') || '-' + +`export default helper` diff --git a/app/styles/app/layouts/caches.sass b/app/styles/app/layouts/caches.sass index b35a17a0..e650b85a 100644 --- a/app/styles/app/layouts/caches.sass +++ b/app/styles/app/layouts/caches.sass @@ -31,4 +31,4 @@ width: grid-calc(1, 13) .delete-repo-caches - margin-top: 1rem \ No newline at end of file + margin-top: 1rem diff --git a/app/templates/caches.hbs b/app/templates/caches.hbs index 7b7220ed..af8d353f 100644 --- a/app/templates/caches.hbs +++ b/app/templates/caches.hbs @@ -15,7 +15,7 @@ {{cache.branch}}
-{{cache.last_modified}}
+{{pretty-date cache.last_modified}}
{{mb cache.size}}MB