| 1293 |
dpurdie |
1 |
[%# Screen for displaying the metric information of a topic. #%]
|
|
|
2 |
|
|
|
3 |
[% USE AutomagicLinks %]
|
|
|
4 |
|
|
|
5 |
[% PROCESS viewtopicheader.html.tmpl version = version topicview = 0
|
|
|
6 |
topicproperties = 0 topiccomments = 0 topicinfo = 1 closehead = 1
|
|
|
7 |
help = "x637.html" %]
|
|
|
8 |
|
|
|
9 |
[%# Create a form to allow the topic's metrics to be changed #%]
|
|
|
10 |
[% SET metric_input_exists = 0 %]
|
|
|
11 |
<form method="post" enctype="multipart/form-data" name="form" accept-charset="UTF-8">
|
|
|
12 |
|
|
|
13 |
<input type="hidden" name="action" value="edit_topic_metrics" />
|
|
|
14 |
<input type="hidden" name="topic" value="[% topic %]" />
|
|
|
15 |
<input type="hidden" name="mode" value="[% mode %]" />
|
|
|
16 |
<input type="hidden" name="version" value="[% topic_version %]" />
|
|
|
17 |
|
|
|
18 |
<h3>Comment Metrics</h3>
|
|
|
19 |
|
|
|
20 |
<table cellpadding="2" cellspacing="2" border="0">
|
|
|
21 |
[% FOREACH metric = comment_metrics %]
|
|
|
22 |
[%# Output the metric header on its own line #%]
|
|
|
23 |
<tr>
|
|
|
24 |
<td class="tth">[% metric.name %]</td>
|
|
|
25 |
|
|
|
26 |
[%# Now output the metric's enumerated values #%]
|
|
|
27 |
[% FOREACH value = metric.values %]
|
|
|
28 |
<td class="tt0">[% value %]</td>
|
|
|
29 |
[% END %]
|
|
|
30 |
</tr>
|
|
|
31 |
|
|
|
32 |
[%# Now output the values #%]
|
|
|
33 |
<tr>
|
|
|
34 |
<td> </td>
|
|
|
35 |
[% FOREACH value = metric.values %]
|
|
|
36 |
<td>[% comment_metric_tally.${metric.name}.$value %]</td>
|
|
|
37 |
[% END %]
|
|
|
38 |
</tr>
|
|
|
39 |
|
|
|
40 |
[% END %]
|
|
|
41 |
|
|
|
42 |
[%# Output the comment count metrics #%]
|
|
|
43 |
<tr>
|
|
|
44 |
<td class="tth">Total</td>
|
|
|
45 |
<td class="tt0">Comment Threads</td>
|
|
|
46 |
<td class="tt0">Submitted Comments</td>
|
|
|
47 |
</tr>
|
|
|
48 |
<tr>
|
|
|
49 |
<td> </td>
|
|
|
50 |
<td>[% number_comment_threads %]</td>
|
|
|
51 |
<td>[% number_comments %]</td>
|
|
|
52 |
</tr>
|
|
|
53 |
</table>
|
|
|
54 |
|
|
|
55 |
<h3>Topic Metrics</h3>
|
|
|
56 |
|
|
|
57 |
<table cellpadding="2" cellspacing="2" border="0">
|
|
|
58 |
<tr class="tth">
|
|
|
59 |
<td>Lines</td>
|
|
|
60 |
|
|
|
61 |
[% FOREACH metric = topic_metrics %]
|
|
|
62 |
<td onmouseover="(window.status='[% metric.description %]'); return true"
|
|
|
63 |
onmouseout="(window.status=''); return true">[% metric.name %]
|
|
|
64 |
[% IF metric.description != '' %]
|
|
|
65 |
<FONT SIZE="-2">
|
|
|
66 |
<a tabindex="1" href="javascript:void(0)"
|
|
|
67 |
onmouseover="return overlib('[% metric.description %]');"
|
|
|
68 |
onmouseout="return nd();">(?)</a>
|
|
|
69 |
</FONT>
|
|
|
70 |
[% END %]
|
|
|
71 |
</td>
|
|
|
72 |
[% END %]
|
|
|
73 |
</tr>
|
|
|
74 |
<tr>
|
|
|
75 |
<td>[% number_of_lines %]</td>
|
|
|
76 |
|
|
|
77 |
[% FOREACH metric = topic_metrics %]
|
|
|
78 |
[% IF metric.enabled %]
|
|
|
79 |
[% metric_input_exists = 1 %]
|
|
|
80 |
<td><input name="topic_metric" type="text" size="6" value="[% metric.value %]"/></td>
|
|
|
81 |
[% ELSE %]
|
|
|
82 |
<td>[% metric.value %]</td>
|
|
|
83 |
[% END %]
|
|
|
84 |
[% END %]
|
|
|
85 |
</tr>
|
|
|
86 |
</table>
|
|
|
87 |
|
|
|
88 |
<h3>User Metrics</h3>
|
|
|
89 |
|
|
|
90 |
<table cellpadding="2" cellspacing="2" border="0">
|
|
|
91 |
|
|
|
92 |
<tr class="tth">
|
|
|
93 |
<td>User</td>
|
|
|
94 |
|
|
|
95 |
[% FOREACH metric = author_metrics %]
|
|
|
96 |
|
|
|
97 |
<td onmouseover="(window.status='[% metric.description %]'); return true"
|
|
|
98 |
onmouseout="(window.status=''); return true">[% metric.name %]
|
|
|
99 |
[% IF metric.description != '' %]
|
|
|
100 |
<FONT SIZE="-2">
|
|
|
101 |
<a tabindex="1" href="javascript:void(0)"
|
|
|
102 |
onmouseover="return overlib('[% metric.description %]');"
|
|
|
103 |
onmouseout="return nd();">(?)</a>
|
|
|
104 |
</FONT>
|
|
|
105 |
[% END %]
|
|
|
106 |
</td>
|
|
|
107 |
|
|
|
108 |
[% END %]
|
|
|
109 |
</tr>
|
|
|
110 |
|
|
|
111 |
[% type = 0 %]
|
|
|
112 |
<tr class="tt[% type mod 2 %]">
|
|
|
113 |
[% type = type + 1 %]
|
|
|
114 |
<td>[% author %]</td>
|
|
|
115 |
[% FOREACH metric = author_metrics %]
|
|
|
116 |
|
|
|
117 |
[% IF metric.scope == 'author' || metric.scope == 'participant' %]
|
|
|
118 |
[% IF metric.enabled %]
|
|
|
119 |
[% metric_input_exists = 1 %]
|
|
|
120 |
<td><input name="author_metric" type="text" value="[% metric.value %]" size="6"/></td>
|
|
|
121 |
[% ELSE %]
|
|
|
122 |
<td>[% metric.value %]</td>
|
|
|
123 |
[% END %]
|
|
|
124 |
[% ELSE %]
|
|
|
125 |
<td><input name="author_metric" type="hidden"/></td>
|
|
|
126 |
[% END %]
|
|
|
127 |
|
|
|
128 |
[% END %]
|
|
|
129 |
</tr>
|
|
|
130 |
|
|
|
131 |
[% FOREACH rmetric = reviewer_metrics %]
|
|
|
132 |
<tr class="tt[% type mod 2 %]">
|
|
|
133 |
[% type = type + 1 %]
|
|
|
134 |
[% SET reviewerindex = loop.index() %]
|
|
|
135 |
<td>[% rmetric.reviewer %]</td>
|
|
|
136 |
[% FOREACH metric = rmetric.user_metrics %]
|
|
|
137 |
|
|
|
138 |
[% IF metric.scope != 'author' %]
|
|
|
139 |
[% IF metric.enabled != 0 %]
|
|
|
140 |
[% metric_input_exists = 1 %]
|
|
|
141 |
<td><input name="reviewer_metric,[% reviewerindex %]" type="text" value="[% metric.value %]" size="6"/></td>
|
|
|
142 |
[% ELSE %]
|
|
|
143 |
<td>[% metric.value %]</td>
|
|
|
144 |
[% END %]
|
|
|
145 |
[% ELSE %]
|
|
|
146 |
<td><input name="reviewer_metric,[% reviewerindex %]" type="hidden"/></td>
|
|
|
147 |
[% END %]
|
|
|
148 |
|
|
|
149 |
[% END %]
|
|
|
150 |
</tr>
|
|
|
151 |
[% END %]
|
|
|
152 |
|
|
|
153 |
<tr class="tt[% type mod 2 %]">
|
|
|
154 |
[% type = type + 1 %]
|
|
|
155 |
<td> </td>
|
|
|
156 |
|
|
|
157 |
[% FOREACH metric = total_metrics %]
|
|
|
158 |
<td>[% metric.value %]</td>
|
|
|
159 |
[% END %]
|
|
|
160 |
</tr>
|
|
|
161 |
</table>
|
|
|
162 |
|
|
|
163 |
<p>
|
|
|
164 |
|
|
|
165 |
[% IF metric_input_exists == 1 %]
|
|
|
166 |
[%# Render the submit button #%]
|
|
|
167 |
<input type="submit" name="button" value="Update Metrics"
|
|
|
168 |
onClick="return DeleteTopicConfirm();"/>
|
|
|
169 |
[% END %]
|
|
|
170 |
</form>
|
|
|
171 |
|
|
|
172 |
<h3>Activity Log</h3>
|
|
|
173 |
|
|
|
174 |
<table cellpadding="2" cellspacing="2" border="0">
|
|
|
175 |
<tr class="tth"><td>Who</td><td>When</td><td>When</td></tr>
|
|
|
176 |
|
|
|
177 |
[% type = 0 %]
|
|
|
178 |
[% FOREACH activity = activity_list %]
|
|
|
179 |
<tr class="tt[% type mod 2 %]">
|
|
|
180 |
<td>[% activity.email | html_entity %]</td>
|
|
|
181 |
<td>[% activity.date | html_entity %]</td>
|
|
|
182 |
<td>[% activity.description | html_entity | $AutomagicLinks %]</td>
|
|
|
183 |
</tr>
|
|
|
184 |
[% type = type + 1 %]
|
|
|
185 |
[% END %]
|
|
|
186 |
</table>
|
|
|
187 |
|
|
|
188 |
[% PROCESS trailer.html.tmpl %]
|
|
|
189 |
|
|
|
190 |
</BODY>
|
|
|
191 |
</HTML>
|
|
|
192 |
|
|
|
193 |
|