This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
/
allclasses.tmpl
52 lines (44 loc) · 1.64 KB
/
allclasses.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<div class="well" id="class-list">
<ul class="nav nav-list">
<li class="nav-header">Classes</li>
<for each="item" in="data">
<li>{!
if (item.alias !== "_global_") {
var type = 'icon-jsdoc icon-jsdoc-';
if (item.isNamespace) {
type += 'namespace';
} else if (item.isInterface) {
type += 'interface';
} else if (item.isConstant) {
type += 'constant';
} else {
type += 'class';
}
var name = '<span class="jsdoc-class-index">' + item.name + '</span>' ;
var icon = '<i class="' + type + '"></i>';
var indent = item.alias.split('.').length - 1;
var content = '<span class="indent" style="padding-left:' + (indent * 14) + 'px;">' + icon + name + '</span>';
if (item.deprecated) {
content += ' <span class="pull-right label label-jsdoc label-jsdoc-deprecated">Deprecated</span> ';
}
if (item.isPrivate) {
content += ' <span class="pull-right label label-jsdoc label-jsdoc-private">Private</span> ';
}
if (item.isProtected) {
content += ' <span class="pull-right label label-jsdoc label-jsdoc-protected">Protected</span> ';
}
if (item.isInner) {
content += ' <span class="pull-right label label-jsdoc label-jsdoc-inner">Inner</span> ';
}
if (item.isInterface) {
content += ' <span class="pull-right label label-jsdoc label-jsdoc-interface">Interface</span> ';
}
if (item.hasMethod('getInstance')) {
content += ' <span class="pull-right label label-jsdoc label-jsdoc-singleton">Singleton</span>';
}
output += new Link().toClass(item.alias).withText(content);
}
!}</li>
</for>
</ul>
</div>