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

Version Path
carnival-0.0.59 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.58 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.57 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.56 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.55 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.54 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.53 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.52 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.51 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.50 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.49 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.48 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.47 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.45 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.44 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.43 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.42 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.41 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.40 app/views/layouts/carnival/_notifications_list.html.haml
carnival-0.0.39 app/views/layouts/carnival/_notifications_list.html.haml