source: trunk/skins/lemill/lemill_tools_view.pt @ 422

Revision 422, 2.1 KB checked in by hans, 13 years ago (diff)

Fixed XHTML validator warnings

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="plone">
5<body>
6
7<div metal:fill-slot="main" style="width:100%" tal:define="search_results python:here.getSearchObject(portal_type='Tool')">
8
9   <span tal:define="samples python:here.getSamples(search_results)" tal:condition="samples" tal:omit-tag="">
10    <h1>Featured tools</h1>
11   
12    <table width="100%" border="0" cellpadding="0" cellspacing="0">
13        <tr>
14            <span tal:repeat="sample samples" tal:omit-tag="">
15                <td tal:define="obj sample/getObject;
16                                piccy obj/getCoverImage" class="featured-cell">
17                    <a href="TODO" tal:attributes="href sample/getURL">
18                        <img tal:attributes="src piccy/absolute_url" width="160" height="120" src="default_material.png" />
19                    </a>
20                </td>
21            </span>
22        </tr>
23        <tr>
24            <span tal:repeat="sample samples" tal:omit-tag="">
25                <td class="featured-cell"><a href="TODO" tal:attributes="href sample/getURL" tal:content="sample/Title">Title</a></td>
26            </span>
27        </tr>
28    </table>
29   </span>   
30    <h1>Browse tools</h1>
31   
32    <ul>
33        <li tal:define="results python:here.getTopResults(search_results, 'getTags')">
34            <a href="tags">by tags</a>:
35            <span tal:repeat="result results">
36                <a href="" tal:attributes="href python:'tags?getTags='+result" tal:content="result">favourite things</a>,
37            </span>
38            <a href="tags">...</a>
39        </li>
40        <li tal:define="results python:here.getTopResults(search_results, 'Language')">
41            <a href="language">by language</a>:
42            <span tal:repeat="result results">
43                <a href="" tal:attributes="href python:'language?Language='+result" tal:content="python:here.script_getPrettyLanguage(result)">favourite things</a>,
44            </span>
45            <a href="language">...</a>
46        </li>
47    </ul>
48   
49</div>
50</body>
51</html>
52
Note: See TracBrowser for help on using the repository browser.