Sha256: 877c8277dca1616b1ca0a36caa5931a60a60921bdf478f281844ae1d84947133

Contents?: true

Size: 644 Bytes

Versions: 4

Compression:

Stored size: 644 Bytes

Contents

-# Partial to display notifications for outstanding invitations and friendship requests to the signed in user
-# origin: M
 
#notifications
  #notifications_inner
    - invitation_count = current_user.received_invitations.count
    - if invitation_count > 0
      = link_to icon(:email, pluralize(invitation_count, 'invitation', 'invitations')), invitations_path, :class => 'notification'
    - friendship_request_count = current_user.friendship_requests.count
    - if friendship_request_count > 0
      = link_to icon(:email, pluralize(friendship_request_count, 'contact request', 'contact requests')), current_user, :class => 'notification'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serum-rails-0.2.1 spec/test_apps/rails-2-3/app/views/layouts/_notifications.html.haml
serum-rails-0.2.0 spec/test_apps/rails-2-3/app/views/layouts/_notifications.html.haml
serum-rails-0.1.1 spec/test_app/app/views/layouts/_notifications.html.haml
serum-rails-0.1.0 spec/test_app/app/views/layouts/_notifications.html.haml