diff --git a/templates/html/namespace.erb b/templates/html/namespace.erb index f82a033..5e57256 100644 --- a/templates/html/namespace.erb +++ b/templates/html/namespace.erb @@ -25,36 +25,36 @@ <% end %> <% # Is it a CLASS? %> -<% if @doc_instance.is_a?(Documentation::Klass) %> +<% if d.is_a?(Documentation::Klass) %> - <% if @doc_instance.superklass %> -
-
-

Superclass

-
- -
-

<%= auto_link_code(d.superklass, false) %>

-
-
- <% end %> + <% if d.superklass %> +
+
+

Superclass

+
+ +
+

<%= auto_link_code(d.superklass, false) %>

+
+
+ <% end %> - <% unless @doc_instance.subklasses.empty? %> -
-
-

Subclasses

-
- -
-

<%= d.subklasses.map { |s| auto_link_code(s, false) }.join(', ') %>

-
-
- <% end %> + <% unless d.subklasses.empty? %> +
+
+

Subclasses

+
+ +
+

<%= d.subklasses.map { |s| auto_link_code(s, false) }.join(', ') %>

+
+
+ <% end %> <% end %> <% # Does it have MIXINS? %> -<% unless @doc_instance.mixins.empty? %> +<% unless d.mixins.compact.empty? %>

Includes

@@ -67,7 +67,7 @@ <% end %> <% # Are there related utilities? %> -<% unless @doc_instance.related_utilities.empty? %> +<% unless d.related_utilities.empty? %>

Related utilities

@@ -93,13 +93,13 @@ <% end %> - <% unless @doc_instance.mixins.compact.empty? %> + <% unless d.mixins.compact.empty? %> <% d.mixins.each do |mixin| %>

Inherited from <%= auto_link(mixin) %>

    - <% mixin.all_methods.each do |method| %> -
  • <%= auto_link_code(method, true, :class => class_names_for(method)) %>
  • - <% end %> + <% mixin.all_methods.each do |method| %> +
  • <%= auto_link_code(method, true, :class => class_names_for(method)) %>
  • + <% end %>
<% end %> <% end %> @@ -143,11 +143,11 @@ <% types = { - :constants => "Constants", - :klass_methods => "Class methods", - :klass_properties => "Class properties", - :instance_methods => "Instance methods", - :instance_properties => "Instance properties" + :constants => "Constants", + :klass_methods => "Class methods", + :klass_properties => "Class properties", + :instance_methods => "Instance methods", + :instance_properties => "Instance properties" } %>