Subversion Repositories DevTools

Rev

Rev 1295 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1293 dpurdie 1
[%# Screen for the metrics report. #%]
2
 
3
[% PROCESS header.html.tmpl version = version displaymenu = 1 
4
                            closehead = 1 help ="x692.html"  %]
5
 
6
<!-- "" -->
7
 
8
[%# Display any "feedback" to the user if necessary. #%]
9
[% IF feedback != '' %]
10
    <span class="feedback">[% feedback %]</span>
11
    <p>
12
[% END %]
13
 
14
<h3>User Metrics - Past 16 weeks</h3>
15
 
16
 
17
<table cellpadding="5%" >
18
    <tr class="tlh"><td></td>
19
	<td>last topic authored (days)</td>
20
	<td>last topic reviewed (days)</td>
21
	<td>total Codestriker time (hours)</td>
22
	<td colspan=4>number of topics participated</td>
23
    </tr>
24
 
25
    [% FOREACH user_metrics %]
26
 
27
    <tr class="[% loop.count() % 2 == 1 ? 'tl1' : 'tl2' %]">
28
	<td>[% name | html_entity %]</td>
29
	<td>[% IF date_last_authored != '' %][% date_last_authored %][% ELSE %]&nbsp;[% END %]</td>
30
	<td>[% IF date_last_participated != '' %][% date_last_participated %][% ELSE %]&nbsp;[% END %]</td>
31
	<td>[% IF total_codestriker_time != '' %][% total_codestriker_time %][% ELSE %]&nbsp;[% END %]</td>
32
	<td>[% IF total_topics != '' %][% total_topics %][% ELSE %]&nbsp;[% END %]</td>
33
    </tr>
34
 
35
    [% END %]
36
 
37
</table>
38
 
39
<h3>Comment Metrics</h3>
40
<table cellpadding="5%">
41
    [%# Output the last 12 month headers #%]
42
    <tr class="tl2">
43
        <td>&nbsp;</td>
44
	[% FOREACH month = comment_metrics_month_names %]
45
	    <td>[% month %]</td>
46
	[% END %]
47
    </tr>
48
 
49
    [%# Now cycle through each comment metric type #%]
50
    [% FOREACH comment_metric = comment_metrics %]
51
 
52
        [%# Display the comment metric type as a header #%]    
53
	<tr class="tlh">
54
            <td colspan="13" align="center">[% comment_metric.name %]</td>
55
        </tr>
56
 
57
	[%# Now display each enumerated value for this comment type #%]
58
	[% FOREACH result = comment_metric.results %]
59
        <tr class="[% loop.count() % 2 == 1 ? 'tl1' : 'tl2' %]">
60
	    <td>[% result.name | html_entity %]</td>
61
 
62
	    [% FOREACH count = result.counts %]
63
	        <td>[% count %]</td>
64
	    [% END %]
65
        </tr>
66
        [% END %]
67
    [% END %]
68
 
69
    [%# Output the last 12 month headers #%]
70
    <tr class="tl2">
71
        <td>&nbsp;</td>
72
	[% FOREACH month = comment_metrics_month_names %]
73
	    <td>[% month %]</td>
74
	[% END %]
75
    </tr>
76
</table>
77
 
78
<h3>Topic Metrics</h3>
79
 
80
<table cellpadding="5%">
81
    [%# Output the last 12 month headers #%]
82
    <tr class="tl2">
83
        <td>&nbsp;</td>
84
	[% FOREACH month = comment_metrics_month_names %]
85
	    <td>[% month %]</td>
86
	[% END %]
87
    </tr>
88
 
89
    <tr class="tlh"><td colspan="13" align="center"> Topic Metrics</td></tr>
90
 
91
    [% FOREACH topic_metrics %]
92
 
93
    <tr class="[% loop.count() % 2 == 1 ? 'tl1' : 'tl2' %]">
94
	<td>[% name | html_entity %]</td>
95
 
96
	[% FOREACH scount = counts %]
97
	    <td>[% scount %]</td>
98
	[% END %]
99
    </tr>
100
    [% END %]
101
 
102
    <tr><td></td></tr>
103
 
104
    <tr class="tl2">
105
        <td></td>
106
 
107
	[% FOREACH month = comment_metrics_month_names %]
108
	    <td>[% month %]</td>
109
	[% END %]
110
    </tr>
111
 
112
</table>
113
 
114
 
115
 
116
<hr/>
117
<p><a href="[% download_url %]">Download all metric data as a tabbed delimited text file</a>
118
 
119
 
120
[% PROCESS trailer.html.tmpl %]
121
 
122
</body>
123
</html>
124
 
125