Sha256: 4d17b7e6832c3d01205af85728f78d4753bc1a305304852e521c882d8cc8d9c5

Contents?: true

Size: 782 Bytes

Versions: 45

Compression:

Stored size: 782 Bytes

Contents

module SocialStream
  module Views
    module Toolbar
      module Presence
        def toolbar_items type, options = {}
          super.tap do |items|
            case type
            when :home, :messages
              items << {
                :key => 'chat',
                :html => render(:partial => 'chat/index' , :locals => {:flow => false }) 
              }
            when :profile
              items << {
                :key => 'chat',
                :html => render(:partial => 'chat/index',
                                :locals => {
                                   :flow => true ,
                                   :group => @group
                                 })
              }
            end
          end
        end
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
social_stream-0.25.0 presence/lib/social_stream/views/toolbar/presence.rb
social_stream-presence-0.12.0 lib/social_stream/views/toolbar/presence.rb
social_stream-0.24.1 presence/lib/social_stream/views/toolbar/presence.rb
social_stream-0.24.0 presence/lib/social_stream/views/toolbar/presence.rb
social_stream-presence-0.11.0 lib/social_stream/views/toolbar/presence.rb