Skip to content

Commit

Permalink
Merge pull request #602 from popham/add-missing-mixins
Browse files Browse the repository at this point in the history
Add "Mixins" to module view
  • Loading branch information
hegemonic committed Apr 13, 2014
2 parents f64b2f1 + c1617b8 commit bac1ea0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/default/tmpl/container.tmpl
Expand Up @@ -82,6 +82,18 @@
<?js }); ?></dl>
<?js } ?>

<?js
var mixins = self.find({kind: 'mixin', memberof: doc.longname});
if (doc.kind !== 'globalobj' && mixins && mixins.length) {
?>
<h3 class="subsection-title">Mixins</h3>

<dl><?js mixins.forEach(function(m) { ?>
<dt><?js= self.linkto(m.longname, m.name) ?></dt>
<dd><?js if (m.summary) { ?><?js= m.summary ?><?js } ?></dd>
<?js }); ?></dl>
<?js } ?>

<?js
var namespaces = self.find({kind: 'namespace', memberof: doc.longname});
if (doc.kind !== 'globalobj' && namespaces && namespaces.length) {
Expand Down

0 comments on commit bac1ea0

Please sign in to comment.