Sha256: 33b164539cc88c227402436a0d04fb6a5e4016611ad0e5b2f307a8c397475e9a
Contents?: true
Size: 577 Bytes
Versions: 5
Compression:
Stored size: 577 Bytes
Contents
include Helpers::FilterHelper def init @page_title = options[:title] if object == "_index.html" elsif object.name == :root sections :layout, [:index] else super end end def stylesheets super + %w(css/custom.css) end def javascripts super + %w(js/rest_plugin.js) end def menu_lists [ { :type => 'resource', :title => "Resources", :search_title => "Resources" }, { :type => 'object', :title => "Objects", :search_title => "Objects" } ] end def index @readme = options[:readme] @resources = select_resources(@objects) erb(:index) end
Version data entries
5 entries across 5 versions & 1 rubygems