-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathWidgetVitalStatsHTML.txt
More file actions
58 lines (54 loc) · 2.34 KB
/
Copy pathWidgetVitalStatsHTML.txt
File metadata and controls
58 lines (54 loc) · 2.34 KB
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
53
54
55
56
57
58
<div class="box">
<style>
ul.stats-list li span.bar {
background-color: #49917b33;
position: absolute;
left: 0;
bottom: 0;
top: 0;
z-index: 0;
}
ul.stats-list li a,
ul.stats-list li span:not(.bar) {
position: relative;
z-index: 10;
}
</style>
<div class="box-title hidden-xs" style="border:0;">
<h5>{{WidgetName}}</h5>
</div>
<a class="visible-xs-block" id="{{WidgetId}}-collapse" data-toggle="collapse" href="#{{WidgetId}}-section" aria-expanded="true" aria-controls="{{WidgetId}}-section">
<div class="box-title">
<h5><i class="fa fa-chevron-circle-right"></i> {{WidgetName}}</h5>
</div>
</a>
<div class="collapse in" id="{{WidgetId}}-section">
{{#ifGT results.Count 0}}
<ul class="list-group bordered stats-list">
{{#each results}}
{{#ifEqual url "#"}}
<li class="list-group-item">
<span>{{name}}</span>
<span style="float:right;">{{count}}</span>
<span class="bar" style="width: calc(100% * {{count}} / {{{../../maxCnt}}});"></span>
</li>
{{else}}
<li class="list-group-item">
<a href="{{url}}">{{name}}</a>
<a href="{{url}}" style="float:right;">{{count}}</a>
<span class="bar" style="width: calc(100% * {{count}} / {{{../../maxCnt}}});"></span>
</li>
{{/ifEqual}}
{{/each}}
<!-- IF YOU WANT TO INCLUDE A TOTAL, DELETE THIS WHOLE LINE AND THE PARTNER BELOW, BUT NOT THE STUFF BETWEEN
<li class="list-group-item">
<span style="font-weight:bold;">Total</span>
<span style="float:right;font-weight:bold;">{{total}}</span>
</li>
<!-- IF YOU WANT TO INCLUDE A TOTAL, DELETE THIS WHOLE LINE AND THE PARTNER ABOVE, BUT NOT THE STUFF BETWEEN -->
</ul>
{{else}}
<div class="box-content"></div>
{{/ifGT}}
</div>
</div>