voluntary-ember_js 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9da223c770795b529aac20b85d4c97e37f2c6310
4
- data.tar.gz: eec2022b526439cad03fb2191e5dad492dbf7163
3
+ metadata.gz: 12feba527db6518bb1f63d0f40915dcc1cc667dc
4
+ data.tar.gz: 62fa2bfdd5e115bebd0587d249f1482e8a80e290
5
5
  SHA512:
6
- metadata.gz: d5d91d9553c161be75096767cb0da82f0f0c2eab0880159fcf5f59513d2665c5d0ef9d8832fd801071e29423e6e87cfc020f79d73e36332bd6b1bda977f42039
7
- data.tar.gz: 6f518f01d1a064f515520e7b662ea0129fb374347157548c0c026d9da52d943ddee23965f5d14ad528fbf83067a106ed01b410856c83224d64500e5ea7c60fa6
6
+ metadata.gz: 874e49ccc8cc35979e755f395ae829e61ad732df91bbe5cf86cfafed5eda8388621546f974b8dc547b8b7078748c2b67aef81b5fc20a30553316a982445d05cc
7
+ data.tar.gz: a3857b9418e38fc451e07dc62b51e5468a0b6c9afe2cddf2f299fd7a2063ff6a40d08e3c70fee0b2d1d7b2cd5103f8481b06c7e2e62152907ae1b541d21d9c67
@@ -0,0 +1,2 @@
1
+ Ember.Handlebars.helper 'formatted-datetime', (datetime, options) ->
2
+ new (Ember.Handlebars.SafeString)('<span title="' + moment(datetime).format('llll') + '">' + moment(datetime).fromNow() + '</span>')
@@ -61,6 +61,7 @@
61
61
  <%= javascript_include_tag *voluntary_ember_js_javascripts %>
62
62
  <script type="text/javascript">
63
63
  Volontariat.locale = '<%= I18n.locale.to_s %>';
64
+ moment.locale('<%= I18n.locale.to_s %>');
64
65
  Volontariat.translations = <%= I18n.backend.send(:translations)[I18n.locale].to_json.html_safe %>;
65
66
  </script>
66
67
  <%= javascript_tag do %>
@@ -1,5 +1,5 @@
1
1
  module Voluntary
2
2
  module EmberJs
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voluntary-ember_js
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Gawlista
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-23 00:00:00.000000000 Z
11
+ date: 2015-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: voluntary
@@ -338,6 +338,7 @@ files:
338
338
  - app/assets/javascripts/voluntary/ember_js/controllers/application_controller.js.coffee
339
339
  - app/assets/javascripts/voluntary/ember_js/controllers/controller.js.coffee
340
340
  - app/assets/javascripts/voluntary/ember_js/external/preload_store.js
341
+ - app/assets/javascripts/voluntary/ember_js/helpers/formatted_datetime_helper.js.coffee
341
342
  - app/assets/javascripts/voluntary/ember_js/helpers/name_with_apostrophe_helper.js.coffee
342
343
  - app/assets/javascripts/voluntary/ember_js/helpers/t_helper.js.coffee
343
344
  - app/assets/javascripts/voluntary/ember_js/mixins/has_current_user.js.coffee