Skip to content

Commit

Permalink
entity header fixed at /template
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatov committed Aug 19, 2011
1 parent b8e0ab3 commit c917d75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/scala/scala/tools/colladoc/page/Template.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ class Template(tpl: DocTemplateEntity) extends tools.nsc.doc.html.page.Template(
override def body =
<body class={ if (tpl.isTrait || tpl.isClass || tpl.qualifiedName == "scala.AnyRef") "type" else "value" } onload="windowTitle();">

{ if (tpl.isRootPackage || tpl.inTemplate.isRootPackage)
NodeSeq.Empty
else
<p id="owner">{ templatesToHtml(tpl.inTemplate.toRoot.reverse.tail, xml.Text(".")) }</p>
}

<div id="definition">
<img src={ relativeLinkTo(List(docEntityKindToBigImage(tpl), "lib")) }/>
{
if (tpl.isRootPackage || tpl.inTemplate.isRootPackage)
NodeSeq.Empty
else
<p id="owner">{ templatesToHtml(tpl.inTemplate.toRoot.reverse.tail, xml.Text(".")) }</p>
}
<h1>{ if (tpl.isRootPackage) "root package" else tpl.name }</h1>
</div>

Expand Down
4 changes: 4 additions & 0 deletions src/main/webapp/cotemplate.css
Original file line number Diff line number Diff line change
Expand Up @@ -232,4 +232,8 @@ a[href] {

.ui-button-text-only .ui-button-text {
padding: .2em .6em;
}

#definition #owner > a {
text-decoration: underline;
}

0 comments on commit c917d75

Please sign in to comment.