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-1.1.12 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-1.1.11 lib/social_stream/views/sidebar/base.rb
social_stream-1.1.11 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-1.1.10 lib/social_stream/views/sidebar/base.rb
social_stream-1.1.10 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-1.1.9 lib/social_stream/views/sidebar/base.rb
social_stream-1.1.9 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-1.1.8 lib/social_stream/views/sidebar/base.rb
social_stream-1.1.8 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-1.1.7 lib/social_stream/views/sidebar/base.rb
social_stream-1.1.7 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-1.1.6 lib/social_stream/views/sidebar/base.rb
social_stream-1.1.6 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-1.1.5 lib/social_stream/views/sidebar/base.rb
social_stream-1.1.5 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-1.1.4 lib/social_stream/views/sidebar/base.rb
social_stream-1.1.4 base/lib/social_stream/views/sidebar/base.rb
social_stream-1.1.3 base/lib/social_stream/views/sidebar/base.rb
social_stream-base-1.1.3 lib/social_stream/views/sidebar/base.rb
social_stream-1.1.2 base/lib/social_stream/views/sidebar/base.rb