Sha256: 4176f3d48a24fb59fb5dc4e510c4f4ea4c4efba525e06704b301af6fcabdeb8d
Contents?: true
Size: 949 Bytes
Versions: 51
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, :html => 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
51 entries across 51 versions & 2 rubygems