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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cffadc0f064a8af337efc15ff1785d0f899b1db8
4
- data.tar.gz: 560ab10dcbaf32cb0a592c38bcf319407532eaed
3
+ metadata.gz: 894e9ea7d921d8e0831b8ed311857d51ee43d3e1
4
+ data.tar.gz: fa5aa3d3e9d64dce5c4e885c9fe342e186f77c5f
5
5
  SHA512:
6
- metadata.gz: 93f88e81fa12af6f7a80009f85a93fb0deb738934a39da3fd6acf7703147f964bfba88e19134c35acf1a411ac829d30956f1cfc0d3ae2845497e47b0f82594e8
7
- data.tar.gz: 829ee50a228eae89a67554574a365786c8a87dc55ff9c92dc9b92afd7c16493eafc6d3db5bd4ece7f590a3bb298bcb71f44d167e50898f93244504060a7a7786
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, :owner?, :admin?
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
- <%= render @notifications %>
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>
@@ -2,3 +2,4 @@ en:
2
2
  notifications:
3
3
  all_notifications: 'All Notifications'
4
4
  clean_all: 'Clean All'
5
+ no_records: "No Notifications"
@@ -2,3 +2,4 @@ zh-CN:
2
2
  notifications:
3
3
  all_notifications: '所有通知'
4
4
  clean_all: '清空'
5
+ no_records: "没有通知"
@@ -1,3 +1,3 @@
1
1
  module Notifications
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifications
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee