templates/default/layout/html/setup.rb in yard-0.7.5 vs templates/default/layout/html/setup.rb in yard-0.8.0

- old
+ new

@@ -1,36 +1,36 @@ def init - @breadcrumb = [] + @breadcrumb = [] if @onefile sections :layout elsif @file if @file.attributes[:namespace] - @object = options[:object] = Registry.at(@file.attributes[:namespace]) || Registry.root + @object = options.object = Registry.at(@file.attributes[:namespace]) || Registry.root end @breadcrumb_title = "File: " + @file.title @page_title = @breadcrumb_title sections :layout, [:diskfile] - elsif object + elsif @contents + sections :layout, [:contents] + else case object when '_index.html' - @page_title = options[:title] + @page_title = options.title sections :layout, [:index, [:listing, [:files, :objects]]] when CodeObjects::Base unless object.root? cur = object.namespace while !cur.root? @breadcrumb.unshift(cur) cur = cur.namespace end end - + @page_title = format_object_title(object) type = object.root? ? :module : object.type sections :layout, [T(type)] end - else - sections :layout, [:contents] end end def contents @contents @@ -64,8 +64,8 @@ # @return [Array<Hash{Symbol=>String}>] the list of search links and drop-down menus # @since 0.7.0 def menu_lists [ { :type => 'class', :title => 'Classes', :search_title => 'Class List' }, - { :type => 'method', :title => 'Methods', :search_title => 'Method List' }, + { :type => 'method', :title => 'Methods', :search_title => 'Method List' }, { :type => 'file', :title => 'Files', :search_title => 'File List' } ] end