Module: SocialStream::ToolbarConfig::Events

Defined in:
lib/social_stream/toolbar_config/events.rb

Instance Method Summary collapse

Instance Method Details

#profile_toolbar_items(subject = current_subject) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/social_stream/toolbar_config/events.rb', line 4

def profile_toolbar_items(subject = current_subject)
  items = super

  if SocialStream.activity_forms.include?(:event) &&
     subject.is_a?(Event) &&
     subject.agenda.present?

     items.insert(1, {
       :key => :outline_info,
       :name => image_tag("btn/btn_outline.png")+t('menu.outline'),
       :url =>  agenda_path(subject)
     })
  end

  items
end