Sha256: d9e42bfaaf3d183a1294f56426886c77884277dfb38ec64e0f14892052595382

Contents?: true

Size: 488 Bytes

Versions: 121

Compression:

Stored size: 488 Bytes

Contents

module SocialStream
  module Views
    module Settings
      module Presence
        def settings_items
          super.tap do |items|
            if SocialStream::Presence.enable
              if current_subject == current_user
                items.insert_before 'notifications', {
                  :key  => 'chat',
                  :html => render(:partial => "chat/settings")
                }
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

121 entries across 121 versions & 3 rubygems

Version Path
social_stream-0.16.1 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.15.8 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.15.7 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.15.6 presence/lib/social_stream/views/settings/presence.rb
social_stream-presence-0.2.0 lib/social_stream/views/settings/presence.rb
social_stream-presence-0.1.7 lib/social_stream/views/settings/presence.rb
social_stream-0.15.5 presence/lib/social_stream/views/settings/presence.rb
social_stream-presence-0.1.6 lib/social_stream/views/settings/presence.rb
social_stream-0.15.4 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.15.1 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.15.0 presence/lib/social_stream/views/settings/presence.rb
social_stream-presence-0.1.4 lib/social_stream/views/settings/presence.rb
social_stream-0.14.1 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.14.0 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.13.3 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.13.2 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.13.1 presence/lib/social_stream/views/settings/presence.rb
social_stream-presence-0.1.2 lib/social_stream/views/settings/presence.rb
social_stream-0.13.0 presence/lib/social_stream/views/settings/presence.rb
social_stream-presence-0.1.1 lib/social_stream/views/settings/presence.rb