Skip to content
Snippets Groups Projects
Commit 85ac2d05 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Add text "singleton" to header of singleton classes.

Because the icon isn't explained anywhere, it might not be immediately apparent
that a class is singleton.
parent c3b221b9
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,9 @@ Ext.define('Docs.view.cls.Header', { ...@@ -19,6 +19,9 @@ Ext.define('Docs.view.cls.Header', {
'<a href="#" class="class-source-link">{name}', '<a href="#" class="class-source-link">{name}',
'<span class="class-source-tip">View source...</span>', '<span class="class-source-tip">View source...</span>',
'</a>', '</a>',
'<tpl if="singleton">',
'<span>singleton</span>',
'</tpl>',
'{[this.renderAliases(values.aliases)]}', '{[this.renderAliases(values.aliases)]}',
'</h1>', '</h1>',
Docs.data.showPrintButton ? '<a class="print" href="?print=/api/{name}" target="_blank">Print</a>' : '', Docs.data.showPrintButton ? '<a class="print" href="?print=/api/{name}" target="_blank">Print</a>' : '',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment