source: trunk/skins/lemill/lemill_content_view.pt @ 481

Revision 481, 3.7 KB checked in by vahur, 13 years ago (diff)

fixing tests and other minor fixes

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="lemill">
5<body>
6
7<div metal:fill-slot="main" style="width:100%" tal:define="piece_results python:here.getSearchObject(portal_type='Piece');
8         material_results python:here.getSearchObject(portal_type=['Material', 'PresentationMaterial', 'MultimediaMaterial']);
9         search_results python:piece_results+material_results">
10
11    <h1 i18n:translate="heading_featured_content">Featured content</h1>
12
13   <span tal:define="samples python:here.getSamples(search_results)" tal:condition="samples" tal:omit-tag="">
14    <table width="546" border="0" cellpadding="0" cellspacing="0">
15        <tr>
16            <span tal:repeat="sample samples" tal:omit-tag="">
17                <td tal:define="obj sample/getObject;
18                                piccy obj/getCoverImage" class="featured-cell">
19                    <a href="TODO" tal:attributes="href sample/getURL">
20                        <img tal:attributes="src piccy/absolute_url" width="160" height="120" src="default_material.png" />
21                    </a>
22                </td>
23            </span>
24        </tr>
25        <tr>
26            <span tal:repeat="sample samples" tal:omit-tag="">
27                <td class="featured-cell"><a href="TODO" tal:attributes="href sample/getURL" tal:define="obj sample/getObject" tal:content="obj/pretty_title_or_id">PLACEHOLDER</a></td>
28            </span>
29        </tr>
30    </table>
31   </span>   
32    <h1 i18n:translate="heading_browse_content">Browse content</h1>
33   
34    <ul>
35        <li tal:define="results python:here.getTopResults(search_results, 'getTags')">
36            <a i18n:translate="link_browse_by_tags" href="tags">by tags</a>:
37            <span tal:repeat="result results">
38                <a href="" tal:attributes="href python:'tags?getTags='+result" tal:content="result">PLACEHOLDER</a>,
39            </span>
40            <a href="tags">...</a>
41        </li>
42
43        <li tal:define="results python:here.getTopResults(search_results, 'Language')">
44            <a i18n:translate="link_browse_by_language" href="language">by language</a>:
45            <span tal:repeat="result results">
46                <a href="" tal:attributes="href python:'language?Language='+result" tal:content="python:here.script_getPrettyLanguage(result)">PLACEHOLDER</a>,
47            </span>
48            <a href="language">...</a>
49        </li>
50
51
52        <tal:comment replace="nothing">
53            <!--
54            <li tal:define="results python:here.getTopResults(search_results, 'Subject')">
55                <a i18n:translate="link_browse_by_subject" href="subject">by subject</a>:
56                <span tal:repeat="result results">
57                    <a href="" tal:attributes="href python:'subject?Subject='+result" tal:content="result">PLACEHOLDER</a>,
58                </span>
59                <a href="subject">...</a>
60            </li>
61            -->
62        </tal:comment>
63        <li><tal:block i18n:translate="link_browse_by_subject">by subject</tal:block> (<tal:block i18n:translate="text_inactive">inactive</tal:block>)</li>
64       
65        <li tal:define="results python:here.getTopResults(material_results, 'getAge_group')">
66            <a i18n:translate="link_browse_by_age_group" href="age_group">by age group</a>:
67            <span tal:repeat="result results">
68                <a href="" tal:attributes="href python:'age_group?getAge_group='+result" tal:content="result">PLACEHOLDER</a>,
69            </span>
70            <a href="age_group">...</a>
71        </li>
72    </ul>
73
74    <div style="margin-top:30px">
75        <a i18n:translate="link_faq"  href="FAQ">LeMill Preview: FAQ</a>
76    </div>
77
78</div>
79</body>
80</html>
81
Note: See TracBrowser for help on using the repository browser.