Module: SocialStream::Views::Sidebar::Base

Defined in:
lib/social_stream/views/sidebar/base.rb

Instance Method Summary collapse

Instance Method Details



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/social_stream/views/sidebar/base.rb', line 5

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