compareHistory.vm
1.1 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
#set ($page_title="History Comparison")
#parse("pageHead.vm")
#if($resultContent)
#set($Header ="" )
#set($passfail = "fail")
#if($completeMatch)
#set($Header = "A Complete Match")
#set($passfail = "pass")
#else
#set($Header = "Something Didn't Match")
#end
<table>
<tr>
<td class=$passfail>
$Header
</td>
</tr>
</table>
#set($score = "")
<table>
<tr>
<td>"Scores"</td>
<td>$firstFileName</td>
<td>$secondFileName</td>
</tr>
#set ($matched = "Match")
#foreach($result in $resultContent)
#set($score = $comparer.findScoreByFirstTableIndexAsStringAsPercent($count))
<tr>
#if($result.equals("pass"))
#set($matched = "Match. Score: " + $score + "%")
#else
#set($matched = "Not a match. Score: " + $score + "%")
#end
<td class=$result>$matched</td>
#set ($firstTable = $firstTables.get($count))
#set ($secondTable = $secondTables.get($count))
<td>$firstTable</td>
<td>$secondTable</td>
#set ($count = $count + 1)
</tr>
#end
</table>
#else
<h2>Comparison Failed: $pageTitle.Title</h2>
#end
#parse("pageFooter.vm")