lib/rdoc/generator/template/rails/class.rhtml in sdoc-1.1.0 vs lib/rdoc/generator/template/rails/class.rhtml in sdoc-2.0.0

- old
+ new

@@ -1,11 +1,11 @@ <!DOCTYPE html> <html lang="en"> <head> <title><%= h klass.full_name %></title> <meta charset="<%= @options.charset %>" /> - <%= include_template '_head.rhtml', {:rel_prefix => rel_prefix} %> + <%= include_template '_head.rhtml', {:rel_prefix => rel_prefix, :tree_keys => klass.full_name.split('::') } %> <meta property="og:title" value="<%= klass.full_name %>"> <% unless (description = klass.description).empty? %> <% human_desc = truncate(strip_tags(description.gsub("\n", " ").strip)) %> @@ -18,10 +18,13 @@ <meta name="keywords" content="<%= klass.method_list.map(&:name).join(", ") %>"> <% end %> </head> <body> + + <%= include_template '_panel.rhtml' %> + <div class="banner"> <% if ENV['HORO_PROJECT_NAME'] %> <span><%= ERB::Util.html_escape(ENV['HORO_PROJECT_NAME']) %> <%= ERB::Util.html_escape(ENV['HORO_PROJECT_VERSION']) %></span><br /> <% end %> <h1> @@ -41,9 +44,10 @@ <% klass.in_files.each do |file| %> <li><a href="<%= "#{rel_prefix}/#{h file.path}" %>"><%= h file.absolute_name %></a></li> <% end %> </ul> </div> + <div id="bodyContent"> <%= include_template '_context.rhtml', {:context => klass, :rel_prefix => rel_prefix} %> </div> </body> </html>