Commit b7f2be4a authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

List alternate classnames.

Currently at top of the class hierarchy.  Maybe there's a better place,
but it should do for now.
parent 65831c92
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -80,6 +80,12 @@ Ext.define('Docs.view.cls.Overview', {

        this.hierarchyTpl = this.hierarchyTpl || new Ext.XTemplate(
            '<pre class="hierarchy">',
            '<tpl if="alternateClassNames.length &gt; 0">',
                '<h4>Alternate names</h4>',
                '<tpl for="alternateClassNames">',
                    '<div class="alternate-class-name">{.}</div>',
                '</tpl>',
            '</tpl>',
            '<tpl if="tree">',
                '<h4>Hierarchy</h4>',
                '{tree}',
@@ -95,7 +101,8 @@ Ext.define('Docs.view.cls.Overview', {

        return this.hierarchyTpl.apply({
            tree: cls.superclasses.length ? this.renderClassTree(cls.superclasses.concat(cls.name), true) : "",
            mixins: Ext.Array.map(cls.allMixins, this.renderLink, this)
            mixins: Ext.Array.map(cls.allMixins, this.renderLink, this),
            alternateClassNames: cls.alternateClassNames
        });
    },

+3 −1
Original line number Diff line number Diff line
@@ -402,9 +402,11 @@ a:hover {
    margin: 0 0 20px 20px;
    font-size: 12px;
    @include gray-h4;
    .mixin {
    .mixin, .alternate-class-name {
      padding: 0 0 0 12px;
      margin-top: 3px; }
    .alternate-class-name {
      color: #484848; }
    .subclass {
      background: url(../images/elbow-end.gif) no-repeat -5px 0;
      margin-top: 3px;