@@ -79,21 +79,24 @@ trait EntityPage extends HtmlPage {
7979 <ul >
8080 {
8181 def entityToUl (mbr : TemplateEntity with MemberEntity , indentation : Int ): NodeSeq =
82- <li class ={" current-entities indented" + indentation}>
83- {
84- mbr match {
85- case dtpl : DocTemplateEntity =>
86- dtpl.companion.fold(<span class =" separator" ></span >) { c : DocTemplateEntity =>
87- <a class =" object" href ={relativeLinkTo(c)} title ={c.comment.fold(" " )(com => inlineToStr(com.short))}></a >
88- }
89- case _ => <span class =" separator" ></span >
82+ if (mbr.isObject && hasCompanion(mbr))
83+ NodeSeq .Empty
84+ else
85+ <li class ={" current-entities indented" + indentation}>
86+ {
87+ mbr match {
88+ case dtpl : DocTemplateEntity =>
89+ dtpl.companion.fold(<span class =" separator" ></span >) { c : DocTemplateEntity =>
90+ <a class =" object" href ={relativeLinkTo(c)} title ={c.comment.fold(" " )(com => inlineToStr(com.short))}></a >
91+ }
92+ case _ => <span class =" separator" ></span >
93+ }
9094 }
91- }
92- <a class ={mbr.kind} href ={relativeLinkTo(mbr)} title ={mbr.comment.fold(" " )(com => inlineToStr(com.short))}></a >
93- <a href ={relativeLinkTo(mbr)} title ={mbr.comment.fold(" " )(com => inlineToStr(com.short))}>
94- {mbr.name}
95- </a >
96- </li >
95+ <a class ={mbr.kind} href ={relativeLinkTo(mbr)} title ={mbr.comment.fold(" " )(com => inlineToStr(com.short))}></a >
96+ <a href ={relativeLinkTo(mbr)} title ={mbr.comment.fold(" " )(com => inlineToStr(com.short))}>
97+ {mbr.name}
98+ </a >
99+ </li >
97100
98101 // Get path from root
99102 val rootToParentLis = tpl.toRoot
@@ -123,7 +126,7 @@ trait EntityPage extends HtmlPage {
123126 val subsToTplLis = subsToTpl.map(memberToHtml(_, tpl, indentation = rootToParentLis.length))
124127 val subsAfterTplLis = subsAfterTpl.map(memberToHtml(_, tpl, indentation = rootToParentLis.length))
125128 val currEntityLis = currentPackageTpls
126- .filter(x => ! x.isPackage && (x.isTrait || x.isClass || x.isAbstractType))
129+ .filter(x => ! x.isPackage && (x.isTrait || x.isClass || x.isAbstractType || x.isObject ))
127130 .sortBy(_.name)
128131 .map(entityToUl(_, (if (tpl.isPackage) 0 else - 1 ) + rootToParentLis.length))
129132 val currSubLis = tpl.templates
0 commit comments