root/WebContent/WEB-INF/resources/templates/xhtml10.vm @ 349:239e339d04a0

Revision 349:239e339d04a0, 7.1 KB (checked in by tgambet, 4 years ago)

fixed id was not set to the good value

Line 
1#if($unicorncall.DocumentName)
2#set ($noEscape_title = "$result_for $unicorncall.DocumentName")
3#else
4#set ($noEscape_title = $result_for_upload)
5#end 
6#set ($css = ['base_ucn.css'])
7#set ($js = ['scripts/mootools-1.2.3-core-nc.js', 'scripts/mootools-1.2.3.1-more.js', 'scripts/w3c_unicorn_results.js'])
8#if ($unicorncall.isPassed())
9#set ($fav = "favicon_green.ico")
10#else
11#set ($fav = "favicon_red.ico")
12#end
13#parse('includes/head.vm')
14
15#set($observationList = $unicorncall.ObservationList)
16
17#if ($messages.size() > 0)
18#displayMessages($messages)
19#end
20<div id="don_program">
21        <script type="text/javascript" src="http://www.w3.org/QA/Tools/don_prog.js"></script>
22</div>
23<div id="observations">
24#foreach ($observationName in $observationList.keySet())
25#set ($observation = $observationList.get($observationName))
26#set ($infoCount = $observation.getInfoCount())
27#set ($errorCount = $observation.getErrorCount())
28#set ($warningCount = $observation.getWarningCount())
29
30#if($observation.isPassed())
31<div class="observer $observationName valid" id="$observationName">
32#else
33<div class="observer $observationName invalid" id="$observationName">
34#end
35        <h2>
36                <span class="icons">
37                        #if ($infoCount && $infoCount > 0)<img src="images/icone_info.png" alt="Infos" title="Infos" /><span>$infoCount</span> #end
38                        #if ($errorCount && $errorCount > 0)<img src="images/icone_error.png" alt="Errors" title="Errors" /><span>$errorCount</span> #end
39                        #if ($warningCount && $warningCount > 0)<img src="images/icone_warning.png" alt="Warnings" title="Warnings" /><span>$warningCount</span> #end
40                        <a class="anchor" href="#$observationName" title="anchor to this observation">[anchor]</a>
41                </span>
42                #if($observation.isPassed())
43                $test_ok_1
44                #else
45                $test_fail_1
46                #end
47                <span class="name">$unicorncall.getObserverName($observationName, $lang)</span>
48                #if ($observation.getRequestUri())<a class="direct_link" href="$observation.getRequestUri()" title="revalidate this document on this validator website">[direct link]</a>
49                #else <a class="direct_link" href="$observation.getCheckedby()" title="link to this validator website">[direct link]</a>#end
50        </h2>
51       
52        <div class="results">
53        #if ($infoCount && $infoCount > 0)
54                <div class="infos">
55                        <h3>Infos ($infoCount)</h3>
56                        <div class="result">
57                                <table>
58                                        <tbody>
59                                        #set ($i = 0)
60                                        #foreach($result in $observation.getResultsList())
61                                                #if(!$result.Infos.isEmpty())
62                                                #set ($i = $i + 1)
63                                                <tr>
64                                                        <td colspan="5" class="uri">
65                                                        #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end
66                                                        #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end
67                                                        #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end
68                                                        </td>
69                                                </tr>
70#foreach($info in $result.Infos)
71#set ($messageId = "${observationName}-info-${i}-$velocityCount")
72                                                <tr>
73                                                        <td class="linenumber" title="#if($info.Line)Line:$info.Line#end">#if($info.Line)$info.Line#end</td>
74                                                        <td class="colnumber" title="#if($info.Column)Column:$info.Column#end">#if($info.Column)$info.Column #end</td>
75                                                        <td class="codeContext"> #if($info.Context) $info.Context #end </td>
76                                                        <td class="info" id="$messageId">
77                                                        #foreach($message in $info.Message)<span class="msg">$message</span>#end
78                                                                #foreach($longMessage in $info.Longmessage)
79                                                                <p class="longmsg">
80                                                                #foreach($longMessagePiece in $longMessage.Content)
81                                                                        $longMessagePiece
82                                                                #end
83                                                                </p>
84                                                                #end
85                                                        </td>
86                                                        <td class="anchor"><a title="anchor to this message" href="#$messageId">[anchor]</a></td>
87                                                </tr>
88#end
89                                                #end
90                                        #end
91                                        </tbody>
92                                </table>
93                        </div>
94                </div>
95        #end
96       
97        #if ($errorCount && $errorCount > 0)
98                <div class="errors">
99                        <h3>Errors ($errorCount)</h3>
100                        <div class="result">
101                                <table>
102                                        <tbody>
103                                        #set ($i = 0)
104                                        #foreach($result in $observation.getResultsList())
105                                                #if (!$result.Errors.isEmpty())
106                                                #set ($i = $i + 1)
107                                                <tr>
108                                                        <td colspan="5" class="uri">
109                                                        #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end
110                                                        #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end
111                                                        #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end
112                                                        </td>
113                                                </tr>
114#foreach($error in $result.Errors)
115#set ($messageId = "${observationName}-error-${i}-$velocityCount")
116                                                <tr>
117                                                        <td class="linenumber" title="#if($error.Line)Line: $error.Line#end">#if($error.Line)$error.Line#end</td>
118                                                        <td class="colnumber" title="#if($error.Column)Column: $error.Column#end">#if($error.Column)$error.Column #end</td>
119                                                        <td class="codeContext">#if($error.Context) $error.Context #end</td>
120                                                        <td class="error" id="$messageId">
121                                                        #foreach($message in $error.Message)<span class="msg">$message</span>#end
122                                                                #foreach($longMessage in $error.Longmessage)
123                                                                <p class="longmsg">
124                                                                #foreach($longMessagePiece in $longMessage.Content)
125                                                                        $longMessagePiece
126                                                                #end
127                                                                </p>
128                                                                #end
129                                                        </td>
130                                                        <td class="anchor"><a title="anchor to this message" href="#$messageId">[anchor]</a></td>
131                                                </tr>
132#end
133                                                #end
134                                        #end
135                                        </tbody>
136                                </table>
137                        </div>
138                </div>
139        #end
140       
141        #if ($warningCount && $warningCount > 0)
142                <div class="warnings">
143                        <h3>Warnings ($warningCount)</h3>
144                        <div class="result">
145                                <table>
146                                        <tbody>
147                                        #set ($i = 0)
148                                        #foreach($result in $observation.getResultsList())
149                                                #if(!$result.Warnings.isEmpty())
150                                                #set ($i = $i + 1)
151                                                <tr>
152                                                        <td colspan="5" class="uri">
153                                                        #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end
154                                                        #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end
155                                                        #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end
156                                                        </td>
157                                                </tr>
158#foreach($warning in $result.Warnings)
159#set ($messageId = "${observationName}-warning-${i}-$velocityCount")
160                                                <tr>
161                                                        <td class="linenumber" title="#if($warning.Line)Line: $warning.Line#end">#if($warning.Line)$warning.Line#end</td>
162                                                        <td class="colnumber" title="#if($warning.Column)Column: $warning.Column#end">#if($warning.Column)$warning.Column #end</td>
163                                                        <td class="codeContext">#if($warning.Context) $warning.Context #end</td>
164                                                        <td class="warning level$warning.getLevel()" id="$messageId">
165                                                        #foreach($message in $warning.Message)<span class="msg">$message</span>#end
166                                                                #foreach($longMessage in $warning.Longmessage)
167                                                                <p class="longmsg">
168                                                                #foreach($longMessagePiece in $longMessage.Content)
169                                                                        $longMessagePiece
170                                                                #end
171                                                                </p>
172                                                                #end
173                                                        </td>
174                                                        <td class="anchor"><a title="anchor to this message" href="#$messageId">[anchor]</a></td>
175                                                </tr>
176#end
177                                                #end
178                                        #end
179                                        </tbody>
180                                </table>
181                        </div>
182                </div>
183        #end
184        </div>
185</div>
186#end
187</div>
188
189#parse( 'includes/footer.vm' )
Note: See TracBrowser for help on using the browser.