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

Revision 415, 3.3 KB checked in by vahur, 13 years ago (diff)

closes #446, #447 spent 16h
Presentation template. needs testing with IE and other browsers. works nicely with Mozilla
sorting, reordering and deleting slide is missing.

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="piece_results python:here.getSearchObject(portal_type='Piece');
8         material_results python:here.getSearchObject(portal_type='Material');
9         search_results python:piece_results+material_results">
10
11    <h1>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">
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">Title</a></td>
28            </span>
29        </tr>
30    </table>
31   </span>   
32    <h1>Browse content</h1>
33   
34    <ul>
35        <li tal:define="results python:here.getTopResults(search_results, 'getTags')">
36            <a href="tags">by tags</a>:
37            <span tal:repeat="result results">
38                <a href="" tal:attributes="href python:'tags?getTags='+result" tal:content="result">favourite things</a>,
39            </span>
40            <a href="tags">...</a>
41        </li>
42
43        <li tal:define="results python:here.getTopResults(search_results, 'Language')">
44            <a 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)">favourite things</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 href="subject">by subject</a>:
56                <span tal:repeat="result results">
57                    <a href="" tal:attributes="href python:'subject?Subject='+result" tal:content="result">favourite things</a>,
58                </span>
59                <a href="subject">...</a>
60            </li>
61            -->
62        </tal:comment>
63        <li> by subject (inactive)</li>
64       
65        <li tal:define="results python:here.getTopResults(material_results, 'getAge_group')">
66            <a 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">favourite things</a>,
69            </span>
70            <a href="age_group">...</a>
71        </li>
72    </ul>
73
74    <div style="margin-top:20px">
75        You can find answers from the <a href="FAQ">FAQ</a>!
76    </div>
77
78</div>
79</body>
80</html>
81
Note: See TracBrowser for help on using the repository browser.