Sha256: 2c84e9c1c6d744a7a4efb14d41927f14381261700197c07f423fc2e3cdd9c593

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 KB

Contents

module SocialStream
  module ToolbarConfig
    module Documents
      def profile_toolbar_items(subject = current_subject)
        items = super

        items << {
          :key => :resources,
          :name => image_tag("btn/btn_resource.png",:class =>"menu_icon")+t("resource.#{ subject == current_subject ? 'mine' : 'title' }"),
          :url => "#",
          :options => {:link => {:id => "resources_menu"}},
          :items => [
            {:key => :resources_documents,:name => image_tag("btn/btn_document.png")+t('document.title'),:url => polymorphic_path([subject, Document.new])},
            {:key => :resources_pictures,:name => image_tag("btn/btn_gallery.png")+t('picture.title'),:url => polymorphic_path([subject, Picture.new])},
            {:key => :resources_videos,:name => image_tag("btn/btn_video.png")+t('video.title'),:url => polymorphic_path([subject, Video.new])},
            {:key => :resources_audios,:name => image_tag("btn/btn_audio.png")+t('audio.title'),:url => polymorphic_path([subject, Audio.new])}
            ]
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
social_stream-0.12.0 documents/lib/social_stream/toolbar_config/documents.rb
social_stream-documents-0.4.0 lib/social_stream/toolbar_config/documents.rb
social_stream-0.11.8 documents/lib/social_stream/toolbar_config/documents.rb
social_stream-documents-0.3.3 lib/social_stream/toolbar_config/documents.rb