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

Revision 1322, 4.0 KB checked in by pjotr, 13 years ago (diff)

Fixes #1109, we need to update translation fo that the first letters would go to Uppercase

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=context.getMaterialTypes());
9         search_results python:piece_results+material_results">
10
11    <h1 i18n:translate="heading_featured_content">Featured content</h1>
12   <span tal:define="samples python:here.getSamples(search_results);" tal:condition="samples" tal:omit-tag="">
13
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 string:${sample_link}/view" tal:define="obj sample/getObject; piccy obj/getCoverImage; sample_link sample/getURL;">
18                    <img tal:attributes="src piccy/absolute_url | nothing; onclick string:document.location='${sample_link}/view'; alt sample/Title;" src="images/default_learningresource.png" style="cursor: pointer;" tal:define="obj sample/getObject; piccy obj/getCoverImage; sample_link sample/getURL;" alt="Cover image" /></a>
19            </td>
20        </tr>
21        <tr>
22            <td class="captioncell" tal:repeat="sample samples">
23                <a href="#" tal:attributes="href string:${sample_link}/view" tal:define="obj sample/getObject; sample_link sample/getURL;" tal:content="obj/Title">PLACEHOLDER</a>
24            </td>
25        </tr>
26    </table>
27
28   </span>   
29    <h1 i18n:translate="heading_browse_content">Browse content</h1>
30   
31    <ul>
32        <li tal:define="results python:here.getTopResults(search_results, 'Language')">
33            <a i18n:translate="label_browse_by_language" href="language?filter=resources" class="byTextsFont">By language</a>:
34            <span tal:repeat="result results">
35                <a href="" tal:attributes="href python:'language?Language=%s&amp;filter=resources' % here.url_quote(result)" tal:content="python:here.script_getPrettyLanguage(result)">PLACEHOLDER</a>,
36            </span>
37            <a href="language">...</a>
38        </li>
39       
40        <li tal:define="results python:here.getTopResults(material_results, 'getSubject_area')">
41            <a i18n:translate="label_browse_by_subject_area" href="subject_area?filter=resources" class="byTextsFont">By subject area</a>:
42            <span tal:repeat="result results">
43                <a href="" tal:attributes="href python:'subject_area?getSubject_area=%s&amp;filter=resources' % here.url_quote(result)" tal:content="result" i18n:translate="">PLACEHOLDER</a>,
44            </span>
45            <a href="subject_area">...</a>
46        </li>
47
48        <li tal:define="results python:here.getTopResults(material_results, 'getTarget_group')">
49            <a i18n:translate="label_browse_by_target_group" href="target_group?filter=resources" class="byTextsFont">By target group</a>:
50            <span tal:repeat="result results">
51                <a href="" tal:attributes="href python:'target_group?getTarget_group=%s&amp;filter=resources' % here.url_quote(result)" tal:content="result" i18n:translate="">PLACEHOLDER</a>,
52            </span>
53            <a href="target_group">...</a>
54        </li>
55       
56        <li tal:define="results python:here.getTopResults(search_results, 'getTags')">
57            <a i18n:translate="label_browse_by_tags" href="tags?filter=resources" class="byTextsFont">By tags</a>:
58            <span tal:repeat="result results">
59                <a href="" tal:attributes="href python:'tags?getTags=%s&amp;filter=resources' % here.url_quote(result)" tal:content="result">PLACEHOLDER</a>,
60            </span>
61            <a href="tags?filter=resources">...</a>
62        </li>
63    </ul>
64
65    <div style="margin-top:30px">
66        <a i18n:translate="label_recent_changes" href="recent">Recent changes</a> | <a i18n:translate="label_faq" href="FAQ">FAQ</a>
67    </div>
68
69</div>
70</body>
71</html>
72
Note: See TracBrowser for help on using the repository browser.