User usability and visibility upgrades
This commit is contained in:
@@ -2,5 +2,9 @@ Ember.Handlebars.helper 'time', (time, params..., options = {})->
|
|||||||
return '' unless time
|
return '' unless time
|
||||||
time = new Date(time) if typeof(time) is "string"
|
time = new Date(time) if typeof(time) is "string"
|
||||||
iso = time.toISOString()
|
iso = time.toISOString()
|
||||||
tag = if options.bare then iso else $("<span data-time=\"#{iso}\"></span>").text(moment(iso).format(options.format || 'dd D MMM HH:mm')).get(0).outerHTML
|
if options.hash.format
|
||||||
|
format_string = "data-time-format=\"#{options.hash.format}\""
|
||||||
|
else
|
||||||
|
format_string = ''
|
||||||
|
tag = if options.bare then iso else $("<span data-time=\"#{iso}\" #{format_string}></span>").text(moment(iso).format(options.hash.format || 'dd D MMM hh:mm')).get(0).outerHTML
|
||||||
new Handlebars.SafeString tag
|
new Handlebars.SafeString tag
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
= order.display
|
= order.display
|
||||||
span.currency= currency order.total
|
span.currency= currency order.total
|
||||||
span.created_at= time order.created_at
|
span.created_at= time order.created_at format="H:mm"
|
||||||
|
|||||||
@@ -20,4 +20,5 @@
|
|||||||
@Qstorage = localStorage
|
@Qstorage = localStorage
|
||||||
$.extend($translations.en, <%= I18n.t('user', locale: :en).to_json %>);
|
$.extend($translations.en, <%= I18n.t('user', locale: :en).to_json %>);
|
||||||
$.extend($translations.nl, <%= I18n.t('user', locale: :nl).to_json %>);
|
$.extend($translations.nl, <%= I18n.t('user', locale: :nl).to_json %>);
|
||||||
|
|
||||||
setLocale()
|
setLocale()
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ html, body
|
|||||||
padding: 0
|
padding: 0
|
||||||
body
|
body
|
||||||
@media #{$small-only}
|
@media #{$small-only}
|
||||||
font-size: 13px
|
font-size: 14px
|
||||||
#ember-app-container
|
#ember-app-container
|
||||||
background-image: image-url('theme1/wall-bg.jpg')
|
background-image: image-url('theme1/wall-bg.jpg')
|
||||||
background-repeat: repeat
|
background-repeat: repeat
|
||||||
|
|||||||
Reference in New Issue
Block a user