notifly 0.3.3 → 0.3.4

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: 451c45effd33eee07444e8cfd3b12e6e5a8543bf
4
- data.tar.gz: 875ad52e8dcb6d776007880d93f582afcf742ec3
3
+ metadata.gz: 92f6c588e4f3502444595b31560180669c637cd9
4
+ data.tar.gz: 302667266d98f457bd82e4e622daccb84ca0c62c
5
5
  SHA512:
6
- metadata.gz: f94a8a9765d4e4239a2be377be780eb8cc4b747b3a8a8d1f6dc81214e331b1f57cb879656b79b8e8446b5df6445d706e6114b28f71162cd03a0490e2f2ba8fcb
7
- data.tar.gz: b4b9711473e44d89d23b0400d1f083880a26708b583d55c1b8b5b5ed69995ba372ab4acd92029945c3ff40e726a91f918573ebfed1cd04de4a108e66c136235c
6
+ metadata.gz: 6754215c7d59660b4b2e535b370776b2fc4a8b6431c234a42f8872e80bcb83c4d8e08ea2aff68d5716be2b4952c2857176482c42f43f8e07f4036c0845c50080
7
+ data.tar.gz: 4a1fcda0742faafb2d8b35f9296500ed90a7026d0f63cc5c7756d2884952d7a3eae1af5d56ca9279301fae9f775bfb7b080c8f3b1a655fb9aa6d8177e4608582
data/README.md CHANGED
@@ -256,8 +256,8 @@ at [Adapting your layout](#adapting).
256
256
 
257
257
  ### I18n
258
258
 
259
- Notifly uses I18n to render the mail's subject and if you run the install generator
260
- you can change it in `config/locales/notifly.en.yaml` or create your own.
259
+ Notifly uses I18n to render mail's subject and views, if you run the install generator
260
+ you can change it in `config/locales/notifly.en.yml` or create your own.
261
261
 
262
262
  ### <a name='adapting'></a> Adapting your layout
263
263
 
@@ -50,7 +50,7 @@ module Notifly
50
50
 
51
51
  def notifications_between
52
52
  current_user_notifications.between(params[:first_notification_id],
53
- params[:last_notification_id])
53
+ params[:last_notification_id]).ordered
54
54
  end
55
55
  end
56
56
  end
@@ -1,4 +1,4 @@
1
1
  <!-- This partial requires the locals: notification -->
2
2
 
3
- <% link_text = notification.read ? 'unread' : 'read' %>
3
+ <% link_text = notification.read ? t('notifly.view.unread') : t('notifly.view.read') %>
4
4
  <%= link_to link_text, notification_toggle_read_path(notification), method: :put, remote: true %>
@@ -1,3 +1,3 @@
1
1
  <div class="notifly-empty">
2
- You have no notifications
2
+ <% t('notifly.view.no_notifications') %>
3
3
  </div>
@@ -11,16 +11,16 @@
11
11
  Notifications
12
12
 
13
13
  <span id="notifly-header-actions" class="pull-right">
14
- <%= link_to 'Mark as read', '#', id: 'notifly-mark-as-read-link' %>
14
+ <%= link_to t('notifly.view.mark_as_read'), '#', id: 'notifly-mark-as-read-link' %>
15
15
  </span>
16
16
  </div>
17
17
 
18
18
  <div id="notifly-notifications-content">
19
- <div class="notifly-loading">Loading notifications...</div>
19
+ <div class="notifly-loading"><%= t('notifly.view.loading') %></div>
20
20
  </div>
21
21
 
22
22
  <div id="notifly-notifications-footer">
23
- <%= link_to 'More', '#', id: 'notifly-more-notifications-link' %>
23
+ <%= link_to t('notifly.view.more'), '#', id: 'notifly-more-notifications-link' %>
24
24
  </div>
25
25
  </div>
26
26
  </div>
@@ -1,4 +1,12 @@
1
1
  en:
2
2
  notifly:
3
3
  mail_subject:
4
- default: 'You have a new notification'
4
+ default: 'You have a new notification'
5
+ view:
6
+ header: 'Notifications'
7
+ mark_as_read: 'Mark as read'
8
+ loading: 'Loading notifications...'
9
+ more: 'More'
10
+ read: 'read'
11
+ unread: 'unread'
12
+ no_notifications: 'You have no notifications'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Passalini
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-16 00:00:00.000000000 Z
12
+ date: 2015-01-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails