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

Revision 422, 2.5 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='Activity')">
8
9   <span tal:define="samples python:here.getSamples(search_results)" tal:condition="samples" tal:omit-tag="">
10    <h1>Featured activities</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
31    <h1>Browse activities</h1>
32   
33    <ul>
34        <li tal:define="results python:here.getTopResults(search_results, 'getTags')">
35            <a href="tags">by tags</a>:
36            <span tal:repeat="result results">
37                <a href="" tal:attributes="href python:'tags?getTags='+result" tal:content="result">favourite things</a>,
38            </span>
39            <a href="tags">...</a>
40        </li>
41        <li tal:define="results python:here.getTopResults(search_results, 'Language')">
42            <a href="language">by language</a>:
43            <span tal:repeat="result results">
44                <a href="" tal:attributes="href python:'language?Language='+result" tal:content="python:here.script_getPrettyLanguage(result)">favourite things</a>,
45            </span>
46            <a href="language">...</a>
47        </li>
48        <li tal:define="results python:here.getTopResults(search_results, 'getAge_group')">
49            <a href="age_group">by age group</a>:
50            <span tal:repeat="result results">
51                <a href="" tal:attributes="href python:'age_group?getAge_group='+result" tal:content="result">favourite things</a>,
52            </span>
53            <a href="age_group">...</a>
54        </li>
55    </ul>
56
57</div>
58</body>
59</html>
60
Note: See TracBrowser for help on using the repository browser.