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

Revision 1317, 2.6 KB checked in by pjotr, 13 years ago (diff)

references #1071, still needs to be checked out by all the others and with Safari

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="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   
11    <h1 i18n:translate="heading_featured_activities">Featured activities</h1>
12
13    <div metal:define-macro="featured">
14    <table border="0" cellpadding="0" cellspacing="4" width="550">
15        <tr>
16            <td class="coverimagecell" tal:repeat="sample samples">
17                <a href="#" tal:attributes="href sample/getURL" tal:define="obj sample/getObject; piccy obj/getCoverImage">
18                    <img tal:attributes="src piccy/absolute_url | nothing; onclick string:document.location='${sample_link}'" src="images/default_learningresource.png" style="cursor: pointer;" tal:define="obj sample/getObject; piccy obj/getCoverImage; sample_link sample/getURL;" /></a>
19            </td>
20        </tr>
21        <tr>
22            <td class="captioncell" tal:repeat="sample samples">
23                <a href="#" tal:attributes="href sample/getURL" tal:define="obj sample/getObject;" tal:content="obj/Title">PLACEHOLDER</a>
24            </td>
25        </tr>
26    </table>
27    </div>
28                                                               
29   </span>
30
31    <h1 i18n:translate="heading_browser_activities">Browse activities</h1>
32   
33    <ul>
34        <li tal:define="results python:here.getTopResults(search_results, 'Language')">
35            <a i18n:translate="label_browse_by_language" href="language" class="byTextsFont">by language</a>:
36            <span tal:repeat="result results">
37                <a href="" tal:attributes="href python:'language?Language='+here.url_quote(result)" tal:content="python:here.script_getPrettyLanguage(result)">PLACEHOLDER</a>,
38            </span>
39            <a href="language">...</a>
40        </li>
41       
42        <li>
43            <a i18n:translate="label_browse_by_title" href="activities" class="byTextsFont">by title</a>
44        </li>
45
46        <li tal:define="results python:here.getTopResults(search_results, 'getTags')">
47            <a i18n:translate="label_browse_by_tags" href="tags" class="byTextsFont">by tags</a>:
48            <span tal:repeat="result results">
49                <a href="" tal:attributes="href python:'tags?getTags='+here.url_quote(result)" tal:content="result">PLACEHOLDER</a>,
50            </span>
51            <a href="tags">...</a>
52        </li>
53    </ul>
54
55</div>
56</body>
57</html>
58
Note: See TracBrowser for help on using the repository browser.