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