-
Notifications
You must be signed in to change notification settings - Fork 1
/
stats.cfm
49 lines (47 loc) · 894 Bytes
/
stats.cfm
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
<h2>
Statistics
</h2>
<cfset stats = application.cacheonwheels.cache.getStats() />
<cfset statKeys = StructKeyList( stats ) />
<table style="width:100%;" >
<tbody>
<cfoutput>
<cfloop collection="#stats#"
item="item" >
<cfif IsStruct( stats[item] ) >
<cfset innerStruct = stats[item] />
<tr>
<td colspan="3"
class="stat-header" >
<b>
#item#
</b>
</td>
</tr>
<cfloop collection="#innerStruct#"
item="innerItem" >
<tr>
<td style="width:30%" >
<b>
#Humanize( innerItem )#
</b>
</td>
<td>
#innerStruct[innerItem]#
</td>
</tr>
</cfloop>
<cfelse>
<tr>
<td>
#Humanize( item )#
</td>
<td>
#stats[item]#
</td>
</tr>
</cfif>
</cfloop>
</cfoutput>
</tbody>
</table>