Commit 2078fbcb authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Render meta tags signature also in class header.

Removed the old yellow "Private" sign from classes - they now have an
orange "private" bubble just like members.  All other meta tags now also
show up in class header.
parent d8f57d18
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -13,9 +13,6 @@ Ext.define('Docs.view.cls.Header', {
    initComponent: function() {
        this.tpl = Ext.create('Ext.XTemplate',
            '<h1 class="{[this.getClass(values)]}">',
                '<tpl if="private">',
                    '<span class="private">Private</span>',
                '</tpl>',
                '<tpl if="Docs.data.source">',
                    '<a href="#" class="class-source-link">{name}',
                        '<span class="class-source-tip">View source...</span>',
@@ -30,6 +27,7 @@ Ext.define('Docs.view.cls.Header', {
                    '<span>enum of <b>{enum.type}</b></span>',
                '</tpl>',
                '{[this.renderAliases(values.aliases)]}',
                '{[this.renderMetaTags(values.meta)]}',
            '</h1>',
            '<tpl if="Docs.data.showPrintButton">',
                '<a class="print" href="?print=/api/{name}" target="_blank">Print</a>',
@@ -63,6 +61,11 @@ Ext.define('Docs.view.cls.Header', {
                    else {
                        return "";
                    }
                },
                renderMetaTags: function(metaTags) {
                    return ' ' + Ext.Array.map(Docs.data.signatures, function(s) {
                        return metaTags[s.key] ? '<span class="signature '+s.key+'">'+(s["long"])+'</span>' : '';
                    }).join(' ');
                }
            }
        );
+9 −6
Original line number Diff line number Diff line
@@ -45,13 +45,16 @@
      &.hover {
        color: #929292; } }

    // Yellow text PRIVATE on private classes
    span.private {
      float: right;
      margin-right: 50px;
    .signature {
      font-weight: bold;
      color: #e7ba27;
      letter-spacing: 0px; } }
      text-transform: uppercase;
      font-size: 0.4em;
      letter-spacing: 2px;
      @include border-radius(3px);
      margin-left: 2px;
      margin-right: 0;
      padding: 0 5px;
      @include signature-colors; } }

  .guide-container {
    table {