Module: SocialStream::ToolbarConfig::Documents

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

Instance Method Summary collapse

Instance Method Details

#home_toolbar_itemsObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/social_stream/toolbar_config/documents.rb', line 15

def home_toolbar_items
  items = super

  items << {
    :key => :documents,
    :name => image_tag("btn/btn_resource.png",:class =>"menu_icon")+t("document.title"),
    :url => polymorphic_path([current_subject, Document.new]),
    :options => {:link => {:id => "documents_menu"}}
  }
end

#profile_toolbar_items(subject = current_subject) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/social_stream/toolbar_config/documents.rb', line 4

def profile_toolbar_items(subject = current_subject)
  items = super

  items << {
    :key => :documents,
    :name => image_tag("btn/btn_resource.png",:class =>"menu_icon")+t("document.title"),
    :url => polymorphic_path([subject, Document.new]),
    :options => {:link => {:id => "documents_menu"}}
  }
end