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

Revision 2409, 6.0 KB checked in by anonymous, 11 years ago (diff)

Worked on #1743. *Important* Update first to latest tagged release ([2408]) and run archetype update and quickinstaller there before doing anything with this version. Major changes: removed workflows, created LeMillCatalogTool? to provide simpler, faster catalog, replaced Plone's globalize with simpler, faster version, removed reliance to Plone's Actions in page templates, simplified access to portlets Still to do: go through portlets code and remove slow and cumbersome checks and see if they all work.

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="cached here/presetTopThrees">
8
9   <span tal:define="samples here/getSamplesFromDictionary" tal:condition="samples" tal:omit-tag="">
10   
11    <h1 i18n:translate="heading_featured_people">Featured people</h1>
12
13    <table border="0" cellpadding="0" cellspacing="4" width="550">
14        <tr>
15            <td class="coverimagecell" tal:repeat="sample samples">
16                <a href="#" title="Cover image" tal:attributes="href obj/absolute_url; title obj/Title | nothing;" tal:define="obj python:context.lemill_tool.getObjectByUID(sample['UID']); piccy obj/getCoverImage">
17                    <img alt="Cover image" tal:attributes="src piccy/absolute_url | nothing; onclick string:document.location='${obj/absolute_url}'; alt obj/Title | nothing;" src="images/default_member.png" style="cursor: pointer;" /></a>
18            </td>
19        </tr>
20        <tr>
21            <td class="captioncell" tal:repeat="sample samples">
22                <a href="#" tal:attributes="href obj/absolute_url" tal:define="obj python:context.lemill_tool.getObjectByUID(sample['UID'])" tal:content="obj/NiceName">PLACEHOLDER</a>
23            </td>
24        </tr>
25    </table>
26
27   </span>
28   
29    <h1 i18n:translate="heading_browse_people">Browse people</h1>
30   
31    <ul>
32        <li>
33            <a i18n:translate="label_browse_by_language" href="language" class="byTextsFont">By language</a>:
34            <span tal:repeat="result here/top3languages_people">
35                <a href="" tal:attributes="href python:'language?language_skills='+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>
41            <a i18n:translate="label_browse_by_name_cloud" href="members" class="byTextsFont">By name cloud</a>
42        </li>
43       
44        <li>
45            <a i18n:translate="label_browse_by_location" href="country" class="byTextsFont">By location</a>:
46            <span tal:repeat="result here/top3countries">
47                <a href="" tal:attributes="href python:'country?location='+here.url_quote(result)" tal:content="result">PLACEHOLDER</a>,
48            </span>
49            <a href="country">...</a>
50        </li>
51
52        <li>
53            <a i18n:translate="label_browse_by_skills" href="skills" class="byTextsFont">By skills</a>:
54            <span tal:repeat="result here/top3skills">
55                <a href="" tal:attributes="href python:'skills?skills='+here.url_quote(result)" tal:content="result">PLACEHOLDER</a>,
56            </span>
57            <a href="skills">...</a>
58        </li>
59
60        <li>
61            <a i18n:translate="label_browse_by_interests" href="interests" class="byTextsFont">By interests</a>:
62            <span tal:repeat="result here/top3interests">
63                <a href="" tal:attributes="href python:'interests?interests='+here.url_quote(result)" tal:content="result">PLACEHOLDER</a>,
64            </span>
65            <a href="interests">...</a>
66        </li>
67       
68        <li>
69            <a i18n:translate="label_browse_by_subject_area" href="subject_area" class="byTextsFont">By subject area</a>:
70            <span tal:repeat="result here/top3subject_areas_people">
71                <a href="" tal:attributes="href python:'subject_area?subject_area='+here.url_quote(result)" tal:content="result" i18n:translate="">PLACEHOLDER</a>,
72            </span>
73            <a href="subject_area">...</a>
74        </li>
75    </ul>
76
77
78    <h1 i18n:translate="heading_browse_groups">Browse groups</h1>
79   
80    <ul>
81        <li>
82            <a i18n:translate="label_browse_by_language" href="g_language" class="byTextsFont">By language</a>:
83            <span tal:repeat="result here/top3languages_groups">
84                <a href="" tal:attributes="href python:'g_language?language_skills='+here.url_quote(result)" tal:content="python:here.script_getPrettyLanguage(result)">PLACEHOLDER</a>,
85            </span>
86            <a href="group_language">...</a>
87        </li>
88       
89        <li>
90            <a i18n:translate="label_browse_by_name_cloud" href="groups" class="byTextsFont">By name cloud</a>
91        </li>
92
93        <li>
94            <a i18n:translate="label_browse_by_tags" href="tags" class="byTextsFont">By tags</a>:
95            <span tal:repeat="result here/top3tags">
96                <a href="" tal:attributes="href python:'tags?tag='+here.url_quote(result)" tal:content="result">PLACEHOLDER</a>,
97            </span>
98            <a href="tags">...</a>
99        </li>
100           
101        <li>
102            <a i18n:translate="label_browse_by_subject_area" href="group_subject_area" class="byTextsFont">By subject area</a>:
103            <span tal:repeat="result here/top3subject_areas_groups">
104                <a href="" tal:attributes="href python:'group_subject_area?subject_area='+here.url_quote(result)" tal:content="result" i18n:translate="">PLACEHOLDER</a>,
105            </span>
106            <a href="group_subject_area">...</a>
107        </li>
108
109    </ul>
110
111       <tal:group_recent_threads define="recents here/mergeLatestPostsInMyGroups;">
112           <h1 i18n:translate="heading_recent_forum_threads" tal:condition="recents">Recent forum threads in my groups</h1>
113           <table border="0" cellpadding="2" cellspacing="2" width="100%" tal:condition="recents">
114               <tr>
115                   <th i18n:translate="label_discussion_topic">Topic</th>
116                   <th i18n:translate="">Group</th>
117               </tr>
118               <tr tal:repeat="post recents">
119                   <td><a href="" tal:attributes="href post/absolute_url" tal:content="post/title">PLACEHOLDER</a></td>
120                   <td tal:define="group python:here.getGroupById(post.getParentBlog)"><a href="" tal:attributes="href group/absolute_url" tal:content="group/title">PLACEHOLDER</a></td>
121               </tr>
122           </table>
123       </tal:group_recent_threads>
124   
125</div>
126   
127  </body>
128</html>
129
Note: See TracBrowser for help on using the repository browser.