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 +4 -4
- data/README.md +2 -2
- data/app/controllers/notifly/notifications_controller.rb +1 -1
- data/app/views/notifly/layouts/_actions.html.erb +1 -1
- data/app/views/notifly/layouts/_empty.html.erb +1 -1
- data/app/views/notifly/layouts/_notifly.html.erb +3 -3
- data/config/locales/en.yml +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92f6c588e4f3502444595b31560180669c637cd9
|
4
|
+
data.tar.gz: 302667266d98f457bd82e4e622daccb84ca0c62c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
260
|
-
you can change it in `config/locales/notifly.en.
|
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
|
|
@@ -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 %>
|
@@ -11,16 +11,16 @@
|
|
11
11
|
Notifications
|
12
12
|
|
13
13
|
<span id="notifly-header-actions" class="pull-right">
|
14
|
-
<%= link_to '
|
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"
|
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 '
|
23
|
+
<%= link_to t('notifly.view.more'), '#', id: 'notifly-more-notifications-link' %>
|
24
24
|
</div>
|
25
25
|
</div>
|
26
26
|
</div>
|
data/config/locales/en.yml
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2015-01-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|