Annotation of cdli/zpt/searchResultsInBasket.zpt, revision 1.1

1.1     ! dwinter     1: <html metal:use-macro="here/main_template/macros/page">    
        !             2:  <tal:block metal:fill-slot="body" 
        !             3:  tal:define="results options/result;
        !             4:            indexName options/indexName;
        !             5:            regExp options/regExp;
        !             6:            word options/word">
        !             7: 
        !             8:   
        !             9:   <table width="100%" border=0 cellpadding=0 cellspacing=0>
        !            10:   <tr>
        !            11:   <td>
        !            12:   <h2>Basket: <span tal:replace="python:here.title"/></h2>
        !            13:   </td>
        !            14:   </tr>
        !            15:   </table>
        !            16:    <p tal:condition="not:regExp">Found <span tal:content="word"/></p>
        !            17:     <p tal:condition="regExp">Found <tal:x tal:content="python:','.join(here.findWordRegExp(indexName,word))"></tal:x>.</p>
        !            18: <div>
        !            19:        
        !            20:    <table  border="1">
        !            21:        <tr     tal:repeat="result python:results.keys()">
        !            22:             <td valign="top"><a tal:attributes="href python:'showFile?fileId=%s'%result" target="_blank" tal:content="result"/>    
        !            23:        <td>    
        !            24:            <ul>
        !            25:            <li tal:repeat="line python:results[result]">
        !            26:                <span tal:content="line"/>
        !            27:             </li>
        !            28:        </ul>
        !            29:           </td>
        !            30:    </tr>
        !            31:       </table>
        !            32:       </div>
        !            33:      </tal:block>
        !            34: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>