notifications 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/notifications/application_controller.rb +1 -1
- data/app/views/notifications/notifications/index.html.erb +5 -1
- data/config/locales/notifications.en.yml +1 -0
- data/config/locales/notifications.zh-CN.yml +1 -0
- data/lib/notifications/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 894e9ea7d921d8e0831b8ed311857d51ee43d3e1
|
4
|
+
data.tar.gz: fa5aa3d3e9d64dce5c4e885c9fe342e186f77c5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e2b603574fe0510b6d872c4ef154810a331f770e4de63a5048db465a8f4ed4f1b691c3e9133999ef6a53c91ee3223bd5e78e9e08277d0078d009ad9b6f35faf
|
7
|
+
data.tar.gz: 0e969341405665eca9919edb054a0fe195a178cf8da28d8a01d9dd6973940ce0a6ee7d35fb0e7b7203f1fc671c8192dd23b8e96aac34672a6cd2d17b9d64a2d2
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Notifications
|
2
2
|
class ApplicationController < ::ApplicationController
|
3
|
-
helper_method :current_user
|
3
|
+
helper_method :current_user
|
4
4
|
|
5
5
|
alias_method :origin_current_user, Notifications.config.current_user_method.to_sym
|
6
6
|
alias_method :origin_authenticate_user!, Notifications.config.authenticate_user_method.to_sym
|
@@ -7,7 +7,11 @@
|
|
7
7
|
</span>
|
8
8
|
</div>
|
9
9
|
<div class="list">
|
10
|
-
|
10
|
+
<% if @notifications.blank? %>
|
11
|
+
<div class="no-records"><%= t('notifications.no_records') %></div>
|
12
|
+
<% else %>
|
13
|
+
<%= render @notifications %>
|
14
|
+
<% end %>
|
11
15
|
</div>
|
12
16
|
<%= will_paginate @notifications %>
|
13
17
|
</div>
|