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

Revision 1310, 2.3 KB checked in by pjotr, 13 years ago (diff)

Fixes #1109

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='Tool')">
8
9   <span tal:define="samples python:here.getSamples(search_results);" tal:condition="samples" tal:omit-tag="">
10   
11    <h1 i18n:translate="heading_featured_tools">Featured tools</h1>
12   
13    <ul class="coverimages">
14        <li tal:repeat="sample samples">
15            <div>
16              <a href="#" tal:attributes="href sample/getURL" tal:define="obj sample/getObject; piccy obj/getCoverImage">
17                <span class="coverimg"><span></span>
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;" />
19                </span>
20                <span class="caption" tal:content="sample/Title" />
21              </a>
22            </div>
23        </li>
24    </ul>
25
26   </span>   
27    <h1 i18n:translate="heading_browse_tools">Browse tools</h1>
28   
29    <ul>
30        <li tal:define="results python:here.getTopResults(search_results, 'Language')">
31            <a i18n:translate="label_browse_by_language" href="language" class="byTextsFont">by language</a>:
32            <span tal:repeat="result results">
33                <a href="" tal:attributes="href python:'language?Language='+here.url_quote(result)" tal:content="python:here.script_getPrettyLanguage(result)">PLACEHOLDER</a>,
34            </span>
35            <a href="language">...</a>
36        </li>
37       
38        <li>
39            <a i18n:translate="label_browse_by_title" href="tools" class="byTextsFont">by title</a>
40        </li>
41        <li tal:define="results python:here.getTopResults(search_results, 'getTags')">
42            <a i18n:translate="label_browse_by_tags" href="tags" class="byTextsFont">by tags</a>:
43            <span tal:repeat="result results">
44                <a href="" tal:attributes="href python:'tags?getTags='+here.url_quote(result)" tal:content="result">PLACEHOLDER</a>,
45            </span>
46            <a href="tags">...</a>
47        </li>
48    </ul>
49   
50</div>
51</body>
52</html>
53
Note: See TracBrowser for help on using the repository browser.