Sha256: b7b262577e58696c24692654520e6acffc97a9887c573f408f2095a67b5fb8f8
Contents?: true
Size: 949 Bytes
Versions: 2
Compression:
Stored size: 949 Bytes
Contents
module SocialStream module Views module Toolbar module Documents def toolbar_menu_items type, options = {} super.tap do |items| case type when :home items << { :key => :documents, :html => link_to(image_tag("btn/btn_resource.png",:class =>"menu_icon")+t("document.title.other"), [current_subject, Document.new], :id => "toolbar_menu-documents") } when :profile items << { :key => :documents, :name => link_to(image_tag("btn/btn_resource.png",:class =>"menu_icon")+t("document.title.other"), [options[:subject], Document.new], :id => "toolbar_menu-documents") } end end end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
social_stream-0.24.0 | documents/lib/social_stream/views/toolbar/documents.rb |
social_stream-documents-0.12.0 | lib/social_stream/views/toolbar/documents.rb |