source: trunk/skins/lemill/lemill_community_view.pt @ 3058

Revision 3058, 4.4 KB checked in by tarmo, 9 years ago (diff)

Syntax 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<metal:main fill-slot="main">
8    <div class="title grid">
9       <h1 i18n:translate="heading_featured_groups">Featured groups</h1>
10    </div>
11    <div class="clear"></div>
12   <span tal:define="samples here/getSamples" tal:condition="samples" tal:omit-tag="">
13       <tal:coverimages repeat="obj samples">   
14         <div class="community_border featured_item grid" tal:define="first repeat/obj/start; last repeat/obj/end;" tal:attributes="style  python:test(first, 'margin-left:0', test(last, 'margin-right:0', ''));">
15            &nbsp;<a href="#" title="Cover image" tal:attributes="href obj/getURL; title obj/Title | nothing;">             
16              <img alt="Cover image" valign="middle" tal:attributes="src string:${obj/getURL}/coverImage; alt obj/Title | nothing;" src="images/default_learningresource.png" />
17            </a>&nbsp;
18         </div>
19      </tal:coverimages>
20      <div class="clear"></div>
21      <tal:titles repeat="obj samples">
22        <div class="resource_title grid" tal:define="first repeat/obj/start; last repeat/obj/end;" tal:attributes="style python:test(first, 'margin-left:0', test(last, 'margin-right:0', ''));">
23            <a href="#"  tal:attributes="href obj/getURL" tal:content="python:context.lemill_tool.shortenTitle(obj.Title, 48)">PLACEHOLDER</a>
24        </div>
25      </tal:titles>
26   </span>
27
28  <div class="browse_links grid" tal:define="lang_filter context/getLanguageFilter">
29    <div class="column-left">
30    <h1>People</h1>
31    <dl>
32        <dt><a i18n:translate="label_languages" href="cloud?base=language&amp;type=MemberFolder">Languages</a></dt>
33        <dd><span tal:repeat="result context/top3people_languages | nothing">
34            <a href="" tal:attributes="href python:'language?language=%s' % here.url_quote(result)" tal:content="python:here.script_getPrettyLanguage(result)">PLACEHOLDER</a>, </span><a href="rebuildTop3s" tal:condition="context/amIManager">( rebuild top results )</a><a href="cloud?base=language">...</a>
35        </dd>
36        <dt><a i18n:translate="label_country" href="" tal:attributes="href string:cloud?type=MemberFolder&amp;base=country">Country</a></dt>
37        <dd><span tal:repeat="result python:context.portal_catalog.getTopFive(results,'getLocation_country', 'browse?type=MemberFolder&amp;country=')">
38                <a href="" tal:attributes="href python:result[1]" tal:content="python:result[0]" i18n:translate="">PLACEHOLDER</a>,
39            </span><a href="" tal:attributes="href string:cloud?type=MemberFolder&amp;base=country">...</a>
40        </dd>
41        <dt><a i18n:translate="label_subject_areas" href="" tal:attributes="href string:cloud?type=MemberFolder&amp;base=subject_area">Subject areas</a></dt>
42        <dd><span tal:repeat="result python:context.portal_catalog.getTopFive(results,'getSubject_area', 'browse?type=MemberFolder&amp;subject_area=')">
43                <a href="" tal:attributes="href python:result[1]" tal:content="python:result[0]" i18n:translate="">PLACEHOLDER</a>,
44            </span><a href="" tal:attributes="href string:cloud?type=MemberFolder&amp;base=subject_area">...</a>
45        </dd>
46
47    </dl>
48    </div>
49    <div class="column-right">
50    <h1>Groups</h1>
51    <dl>
52        <dt><a i18n:translate="label_languages" href="cloud?base=language&amp;type=GroupBlog">Languages</a></dt>
53        <dd><span tal:repeat="result context/top3group_languages | nothing">
54            <a href="" tal:attributes="href python:'language?language=%s' % here.url_quote(result)" tal:content="python:here.script_getPrettyLanguage(result)">PLACEHOLDER</a>, </span><a href="rebuildTop3s" tal:condition="context/amIManager">( rebuild top results )</a><a href="cloud?base=language">...</a>
55        </dd>
56        <dt><a i18n:translate="label_subject_areas" href="" tal:attributes="href string:cloud?type=GroupBlog&amp;base=subject_area">Subject areas</a></dt>
57        <dd><span tal:repeat="result python:context.portal_catalog.getTopFive(results,'getSubject_area', 'browse?type=GroupBlog&amp;subject_area=')">
58                <a href="" tal:attributes="href python:result[1]" tal:content="python:result[0]" i18n:translate="">PLACEHOLDER</a>,
59            </span><a href="" tal:attributes="href string:cloud?type=GroupBlog&amp;base=subject_area">...</a>
60        </dd>
61    </dl>
62    </div>
63  </div>
64</metal:main>
65 </body>
66</html>
67
Note: See TracBrowser for help on using the repository browser.