summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/page/Template.scala8
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js6
2 files changed, 4 insertions, 10 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/html/page/Template.scala b/src/compiler/scala/tools/nsc/doc/html/page/Template.scala
index 362dcbe47d..622d2cdc22 100644
--- a/src/compiler/scala/tools/nsc/doc/html/page/Template.scala
+++ b/src/compiler/scala/tools/nsc/doc/html/page/Template.scala
@@ -339,14 +339,6 @@ class Template(tpl: DocTemplateEntity) extends HtmlPage {
</ol></div>
else NodeSeq.Empty
}
- { if(!comment.authors.isEmpty && !isReduced)
- <div class="block"><ol>authors
- { val authors:List[scala.xml.NodeSeq]=for(body <- comment.authors) yield <li>{bodyToHtml(body)}</li>
- authors.reduceLeft(_ ++ Text(", ") ++ _)
- }
- </ol></div>
- else NodeSeq.Empty
- }
{ if(!comment.see.isEmpty && !isReduced)
<div class="block"><ol>see also:
{ val seeXml:List[scala.xml.NodeSeq]=(for(see <- comment.see ) yield <li>{bodyToHtml(see)}</li> )
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js
index 5c1d29fca6..6167fab297 100644
--- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js
@@ -187,7 +187,7 @@ function textFilter() {
matchedSet[child] ? 'show' : 'hide'
]();
});
- $("> .templates", pack).show();
+ if(kindFilterState=="all") $("> .templates", pack).show();
$("> .packhide", pack).show();
$("> .packfocus", pack).show();
});
@@ -206,7 +206,9 @@ function configureHideFilter() {
packhide.text("show");
}
else {
- $("~ ol", packhide).show();
+ // When the filter is in "packs" state, we don't want to show the `.templates`, only `.packages`
+ var selector = kindFilterState=="packs" ? "~ ol.packages" : "~ ol"
+ $(selector, packhide).show();
packhide.text("hide");
}
return false;