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