fix(ldoc.ltp): extra-header tag arrangement (#3318)

This commit is contained in:
Aire-One 2021-04-05 18:42:15 +02:00 committed by GitHub
parent 022be39a3f
commit 9807ccd5e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 16 deletions

View File

@ -193,8 +193,8 @@
# end -- for # end -- for
</ul> </ul>
# end -- if usage # end -- if usage
<div class="extra-header"> <div class="extra-header">
# if module.tags.supermodule or module.tags.knownusage then # if module.tags.supermodule then
<div class="extra-header__section"> <div class="extra-header__section">
<h3>Class Hierarchy</h3> <h3>Class Hierarchy</h3>
<div class="inheritance"> <div class="inheritance">
@ -216,15 +216,16 @@
</li> </li>
# end # end
</ul> </ul>
# end -- module.tags.supermodule # end -- function draw_hierary_recursifly
# draw_hierary_recursifly(#hierarchy) # draw_hierary_recursifly(#hierarchy)
</div> </div>
# end </div>
# end -- module.tags.supermodule
# if module.tags.include then # if module.tags.include then
$(M(ldoc.include_file(module.tags.include))) $(M(ldoc.include_file(module.tags.include)))
# end # end
</div>
# if module.info then # if module.info then
<div class="extra-header__section"> <div class="extra-header__section">
<h3>Info:</h3> <h3>Info:</h3>
@ -235,25 +236,19 @@
</ul> </ul>
</div> </div>
# end -- if module.info # end -- if module.info
# if module.see then # if module.see then
<div class="extra-header__section"> <div class="extra-header__section">
# local li,il = use_li(module.see) # local li,il = use_li(module.see)
# local list_or_p =(#module.see > 1) and 'ul' or 'p'
<h3>See also:</h3> <h3>See also:</h3>
# if #module.see > 1 then <$(list_or_p)>
<ul>
# else
<p>
# end
# for see in iter(module.see) do # for see in iter(module.see) do
$(li)<a href="$(ldoc.href(see))">$(see.label)</a>$(il) $(li)<a href="$(ldoc.href(see))">$(see.label)</a>$(il)
# end -- for # end -- for
# if #module.see > 1 then </$(list_or_p)>
</ul>
# else
</p>
# end
</div> </div>
# end -- if see # end -- if module.see
</div> </div>