(PDOC-17) Changed header and remove sub-header

Prior to this commit there was a header and a sub-header for
defined types and classes. This was a little redundant so rather
than doing that, remove the sub-header and make the main header
more readable.
This commit is contained in:
Hailee Kenney 2014-12-30 15:19:00 -08:00
parent 1f2d9a2d8a
commit e85f58a64e
3 changed files with 17 additions and 1 deletions

View File

@ -1,4 +1,3 @@
<h3 class="signature first"> Class: <%= @class_details[:name] %></h3>
<div class="docstring">
<div class="discussion">
<p><%= @class_details[:desc] %></p>

View File

@ -0,0 +1,5 @@
<div class='module_header'>
<h1>
<%= @header_text %>
</h1>
</div>

View File

@ -17,6 +17,18 @@ def parameter_details
erb(:parameter_details)
end
def header
if object.type == :hostclass
@header_text = "Puppet Class: #{object.name}"
elsif object.type == :definedtype
@header_text = "Puppet Defined Type: #{object.name}"
else
@header_text = "#{object.name}"
end
erb(:header)
end
def docstring
examples = Hash.new
example_tags = object.tags.find_all { |tag| tag.tag_name == "example" }