Sha256: 1fac6d19680a8b867099d29275c52a670e2c862dfd46f2aa82a16fbc2cbf1c29

Contents?: true

Size: 632 Bytes

Versions: 114

Compression:

Stored size: 632 Bytes

Contents

module SocialStream
  module Views
    module Sidebar
      module Base
        def sidebar_items type
          SocialStream::Views::List.new.tap do |items|
            if type == :group_index
              items << {
                :key => 'group.cloud',
                :html => render(:partial => 'groups/tag_cloud')
              }

            end

            if user_signed_in?
              items << {
                :key => 'suggestions_and_pendings',
                :html => render(:partial => 'contacts/suggestions_and_pendings')
              }
            end
          end
        end
      end
    end
  end
end

Version data entries

114 entries across 114 versions & 4 rubygems

Version Path
social_stream-0.24.1 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-0.18.1 lib/social_stream/views/sidebar/base.rb
social_stream-0.24.0 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-0.18.0 lib/social_stream/views/sidebar/base.rb
social_stream-0.23.4 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-0.17.3 lib/social_stream/views/sidebar/base.rb
social_stream-0.23.3 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-0.17.2 lib/social_stream/views/sidebar/base.rb
social_stream-0.23.2 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-0.17.1 lib/social_stream/views/sidebar/base.rb
social_stream-0.23.1 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-0.17.0 lib/social_stream/views/sidebar/base.rb
social_stream-0.22.1 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-0.16.4 lib/social_stream/views/sidebar/base.rb
social_stream-0.22.0 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-0.16.3 lib/social_stream/views/sidebar/base.rb
social_stream-0.21.4 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-0.16.2 lib/social_stream/views/sidebar/base.rb
social_stream-0.21.3 base/lib/social_stream/views/sidebar/base.rb
social_stream-0.21.2 base/lib/social_stream/views/sidebar/base.rb