Show
Ignore:
Timestamp:
09/09/09 12:10:52 (4 years ago)
Author:
tgambet
Branch:
default
convert_revision:
svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@323
Message:

changed result table markup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • WebContent/WEB-INF/resources/templates/xhtml10.vm

    r320 r322  
    4545                #end 
    4646                <span class="name">$unicorncall.getObserverName($observationName, $lang)</span> 
     47                <a href="$observation.getRequestUri()">[Direct Link]</a> 
    4748        </h2> 
    4849         
     
    5253                        <h3>Infos ($infoCount)</h3> 
    5354                        <div class="result"> 
    54                         #foreach($result in $observation.getResultsList()) 
    55                                 #if(!$result.Infos.isEmpty()) 
    56                                 <div class="info-section"> 
    57                                         <h4> 
    58                                                 #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end 
    59                                                 #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end 
    60                                                 #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end 
    61                                         </h4> 
    62                                         <table> 
    63                                                 <tbody> 
     55                                <table> 
     56                                        <tbody> 
     57                                        #foreach($result in $observation.getResultsList()) 
     58                                                #set ($resultCount = $velocityCount) 
     59                                                #if(!$result.Infos.isEmpty()) 
     60                                                <tr> 
     61                                                        <td colspan="5" class="uri"> 
     62                                                        #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end 
     63                                                        #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end 
     64                                                        #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end 
     65                                                        </td> 
     66                                                </tr> 
    6467#foreach($info in $result.Infos) 
    65                                                         <tr> 
    66                                                                 <td class="linenumber" title="#if($info.Line)Line:$info.Line#end #if($info.Column)Column: $info.Column#end">#if($info.Line)$info.Line#end#if($info.Column)/$info.Column #end</td> 
    67                                                                 <td class="codeContext"> #if($info.Context) $info.Context #end </td> 
    68                                                                 <td class="info"> 
    69                                                                 #foreach($message in $info.Message)<span class="msg">$message</span>#end 
    70                                                                         #foreach($longMessage in $info.Longmessage) 
    71                                                                         <p class="longmsg"> 
    72                                                                         #foreach($longMessagePiece in $longMessage.Content) 
    73                                                                                 $longMessagePiece 
    74                                                                         #end 
    75                                                                         </p> 
    76                                                                         #end 
    77                                                                 </td> 
    78                                                         </tr> 
     68#set ($messageId = "${observationName}-info-${resultCount}-$velocityCount") 
     69                                                <tr> 
     70                                                        <td class="linenumber" title="#if($info.Line)Line:$info.Line#end">#if($info.Line)$info.Line#end</td> 
     71                                                        <td class="colnumber" title="#if($info.Column)Column:$info.Column#end">#if($info.Column)$info.Column #end</td> 
     72                                                        <td class="codeContext"> #if($info.Context) $info.Context #end </td> 
     73                                                        <td class="info" id="$messageId"> 
     74                                                        #foreach($message in $info.Message)<span class="msg">$message</span>#end 
     75                                                                #foreach($longMessage in $info.Longmessage) 
     76                                                                <p class="longmsg"> 
     77                                                                #foreach($longMessagePiece in $longMessage.Content) 
     78                                                                        $longMessagePiece 
     79                                                                #end 
     80                                                                </p> 
     81                                                                #end 
     82                                                        </td> 
     83                                                        <td class="anchor"><a title="anchor to this message" href="#$messageId">a</a></td> 
     84                                                </tr> 
    7985#end 
    80                                                 </tbody> 
    81                                         </table> 
    82                                 </div> 
    83                                 #end 
    84                         #end 
     86                                                #end 
     87                                        #end 
     88                                        </tbody> 
     89                                </table> 
    8590                        </div> 
    8691                </div> 
     
    9196                        <h3>Errors ($errorCount)</h3> 
    9297                        <div class="result"> 
    93                         #foreach($result in $observation.getResultsList()) 
    94                                 #if(!$result.Errors.isEmpty()) 
    95                                 <div class="error-section"> 
    96                                         <h4> 
    97                                                 #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end 
    98                                                 #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end 
    99                                                 #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end 
    100                                         </h4> 
    101                                         <table> 
    102                                                 <tbody> 
     98                                <table> 
     99                                        <tbody> 
     100                                        #foreach($result in $observation.getResultsList()) 
     101                                                #set ($resultCount = $velocityCount) 
     102                                                #if (!$result.Errors.isEmpty()) 
     103                                                <tr> 
     104                                                        <td colspan="5" class="uri"> 
     105                                                        #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end 
     106                                                        #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end 
     107                                                        #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end 
     108                                                        </td> 
     109                                                </tr> 
    103110#foreach($error in $result.Errors) 
    104                                                         <tr> 
    105                                                                 <td class="linenumber" title="#if($error.Line)Line: $error.Line#end #if($error.Column)Column: $error.Column #end">#if($error.Line)$error.Line#end#if($error.Column)/$error.Column #end</td> 
    106                                                                 <td class="codeContext">#if($error.Context) $error.Context #end</td> 
    107                                                                 <td class="error"> 
    108                                                                 #foreach($message in $error.Message)<span class="msg">$message</span>#end 
    109                                                                         #foreach($longMessage in $error.Longmessage) 
    110                                                                         <p class="longmsg"> 
    111                                                                         #foreach($longMessagePiece in $longMessage.Content) 
    112                                                                                 $longMessagePiece 
    113                                                                         #end 
    114                                                                         </p> 
    115                                                                         #end 
    116                                                                 </td> 
    117                                                         </tr> 
     111#set ($messageId = "${observationName}-error-${resultCount}-$velocityCount") 
     112                                                <tr> 
     113                                                        <td class="linenumber" title="#if($error.Line)Line: $error.Line#end">#if($error.Line)$error.Line#end</td> 
     114                                                        <td class="colnumber" title="#if($error.Column)Column: $error.Column#end">#if($error.Column)$error.Column #end</td> 
     115                                                        <td class="codeContext">#if($error.Context) $error.Context #end</td> 
     116                                                        <td class="error" id="$messageId"> 
     117                                                        #foreach($message in $error.Message)<span class="msg">$message</span>#end 
     118                                                                #foreach($longMessage in $error.Longmessage) 
     119                                                                <p class="longmsg"> 
     120                                                                #foreach($longMessagePiece in $longMessage.Content) 
     121                                                                        $longMessagePiece 
     122                                                                #end 
     123                                                                </p> 
     124                                                                #end 
     125                                                        </td> 
     126                                                        <td class="anchor"><a title="anchor to this message" href="#$messageId">a</a></td> 
     127                                                </tr> 
    118128#end 
    119                                                 </tbody> 
    120                                         </table> 
    121                                 </div> 
    122                                 #end 
    123                         #end 
     129                                                #end 
     130                                        #end 
     131                                        </tbody> 
     132                                </table> 
    124133                        </div> 
    125134                </div> 
     
    130139                        <h3>Warnings ($warningCount)</h3> 
    131140                        <div class="result"> 
    132                         #foreach($result in $observation.getResultsList()) 
    133                                 #if(!$result.Warnings.isEmpty()) 
    134                                 <div class="warning-section"> 
    135                                         <h4> 
    136                                                 #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end 
    137                                                 #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end 
    138                                                 #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end 
    139                                         </h4> 
    140                                         <table> 
    141                                                 <tbody> 
     141                                <table> 
     142                                        <tbody> 
     143                                        #foreach($result in $observation.getResultsList()) 
     144                                                #set ($resultCount = $velocityCount) 
     145                                                #if(!$result.Warnings.isEmpty()) 
     146                                                <tr> 
     147                                                        <td colspan="5" class="uri"> 
     148                                                        #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end 
     149                                                        #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end 
     150                                                        #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end 
     151                                                        </td> 
     152                                                </tr> 
    142153#foreach($warning in $result.Warnings) 
    143                                                         <tr> 
    144                                                                 <td class="linenumber" title="#if($warning.Line)Line: $warning.Line#end #if($warning.Column)Column: $warning.Column #end">#if($warning.Line)$warning.Line#end#if($warning.Column)/$warning.Column #end</td> 
    145                                                                 <td class="codeContext">#if($warning.Context) $warning.Context #end</td> 
    146                                                                 <td class="warning level$warning.getLevel()"> 
    147                                                                 #foreach($message in $warning.Message)<span class="msg">$message</span>#end 
    148                                                                         #foreach($longMessage in $warning.Longmessage) 
    149                                                                         <p class="longmsg"> 
    150                                                                         #foreach($longMessagePiece in $longMessage.Content) 
    151                                                                                 $longMessagePiece 
    152                                                                         #end 
    153                                                                         </p> 
    154                                                                         #end 
    155                                                                 </td> 
    156                                                         </tr> 
     154#set ($messageId = "${observationName}-warning-${resultCount}-$velocityCount") 
     155                                                <tr> 
     156                                                        <td class="linenumber" title="#if($warning.Line)Line: $warning.Line#end">#if($warning.Line)$warning.Line#end</td> 
     157                                                        <td class="colnumber" title="#if($warning.Column)Column: $warning.Column#end">#if($warning.Column)$warning.Column #end</td> 
     158                                                        <td class="codeContext">#if($warning.Context) $warning.Context #end</td> 
     159                                                        <td class="warning level$warning.getLevel()" id="$messageId"> 
     160                                                        #foreach($message in $warning.Message)<span class="msg">$message</span>#end 
     161                                                                #foreach($longMessage in $warning.Longmessage) 
     162                                                                <p class="longmsg"> 
     163                                                                #foreach($longMessagePiece in $longMessage.Content) 
     164                                                                        $longMessagePiece 
     165                                                                #end 
     166                                                                </p> 
     167                                                                #end 
     168                                                        </td> 
     169                                                        <td class="anchor"><a title="anchor to this message" href="#$messageId">a</a></td> 
     170                                                </tr> 
    157171#end 
    158                                                 </tbody> 
    159                                         </table> 
    160                                 </div> 
    161                                 #end 
    162                         #end 
     172                                                #end 
     173                                        #end 
     174                                        </tbody> 
     175                                </table> 
    163176                        </div> 
    164177                </div>