Sha256: eadc302a1c622e55c8ef13c5a03f91d27094bc81ce1b9117abe02d7130086f30
Contents?: true
Size: 1.01 KB
Versions: 28
Compression:
Stored size: 1.01 KB
Contents
.baloon_arrow .notifications_container .circle = link_to current_admin_user.unread_notifications.size, "#", :class => "notifications_counter #{current_admin_user.unread_notifications.size > 0 ? 'unread' : 'read'}" :javascript $(document).ready(function() { $('.circle').click(function () { $('.notification-content').fadeToggle('fast'); }); }); .notification-content %span.up-not .notifications_list #notification-scroll %ul - current_admin_user.admin_user_notifications.order('created_at desc').each do |n| %li{:class => "#{(n.read)? 'read' : 'unread'}"} %span.title="#{n.notification.title}:" %br %span.message= link_to n.notification.message.html_safe, carnival_read_admin_user_notification_path(n) .view-all %span.message= link_to "Ver todas notificações", carnival_admin_user_notifications_path :javascript $(document).ready(function(){ $('.notifications_list').perfectScrollbar(); })
Version data entries
28 entries across 28 versions & 1 rubygems