</td>
<td class="">
- {{#if updatedAt}}
+ {{#if updatedAt }}
Updated on <span class="js-custom-measure-created-at">{{d updatedAt}}</span>
{{else}}
- Created on <span class="js-custom-measure-created-at">{{d createdAt}}</span>
+ {{#if createdAt }}
+ Created on <span class="js-custom-measure-created-at">{{d createdAt}}</span>
+ {{else}}
+ Created
+ {{/if}}
{{/if}}
by <span class="js-custom-measure-user">{{user.name}}</span>
</td>
const { DEFAULT_LANGUAGE } = require('../../helpers/l10n');
module.exports = function(date) {
+ if (!date) {
+ return '';
+ }
return new Intl.DateTimeFormat(localStorage.getItem('l10n.locale') || DEFAULT_LANGUAGE, {
year: 'numeric',
month: 'long',
const { DEFAULT_LANGUAGE } = require('../../helpers/l10n');
module.exports = function(date) {
+ if (!date) {
+ return '';
+ }
return new Intl.DateTimeFormat(localStorage.getItem('l10n.locale') || DEFAULT_LANGUAGE, {
year: 'numeric',
month: 'long',