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

Revision 1317, 7.7 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="people_results python:here.getSearchObject(portal_type='MemberFolder');
8                        group_results python:here.getSearchObject(portal_type='GroupBlog');
9                        search_results python:people_results+group_results;
10                        groups python:context.lemill_usertool.getGroupsList(user.getId());">
11   
12   <span tal:define="samples python:here.getSamples(search_results);" tal:condition="samples" tal:omit-tag="">
13   
14    <h1 i18n:translate="heading_featured_people">Featured people</h1>
15
16    <table border="0" cellpadding="0" cellspacing="4" width="550">
17        <tr>
18            <td class="coverimagecell" tal:repeat="sample samples">
19                <a href="#" tal:attributes="href sample/getURL" tal:define="obj sample/getObject; piccy obj/getCoverImage">
20                    <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>
21            </td>
22        </tr>
23        <tr>
24            <td class="captioncell" tal:repeat="sample samples">
25                <a href="#" tal:attributes="href sample/getURL" tal:define="obj sample/getObject" tal:content="obj/NiceName">PLACEHOLDER</a>
26            </td>
27        </tr>
28    </table>
29
30   </span>
31   
32    <h1 i18n:translate="heading_browse_people">Browse people</h1>
33   
34    <ul>
35        <li><a i18n:translate="label_browse_by_name" href="members" class="byTextsFont">by name</a></li>
36       
37        <li tal:define="results python:here.getTopResults(people_results, 'getLocation_country')">
38            <a i18n:translate="label_browse_by_location" href="country" class="byTextsFont">by location</a>:
39            <span tal:repeat="result results">
40                <a href="" tal:attributes="href python:'country?getLocation_country='+here.url_quote(result)" tal:content="result">PLACEHOLDER</a>,
41            </span>
42            <a href="country">...</a>
43        </li>
44
45        <li tal:define="results python:here.getTopResults(people_results, 'getLanguage_skills')">
46            <a i18n:translate="label_browse_by_language" href="language" class="byTextsFont">by language</a>:
47            <span tal:repeat="result results">
48                <a href="" tal:attributes="href python:'language?getLanguage_skills='+here.url_quote(result)" tal:content="python:here.script_getPrettyLanguage(result)">PLACEHOLDER</a>,
49            </span>
50            <a href="language">...</a>
51        </li>
52       
53        <li tal:define="results python:here.getTopResults(people_results, 'getSkills')">
54            <a i18n:translate="label_browse_by_skills" href="skills" class="byTextsFont">by skills</a>:
55            <span tal:repeat="result results">
56                <a href="" tal:attributes="href python:'skills?getSkills='+here.url_quote(result)" tal:content="result">PLACEHOLDER</a>,
57            </span>
58            <a href="skills">...</a>
59        </li>
60
61        <li tal:define="results python:here.getTopResults(people_results, 'getInterests')">
62            <a i18n:translate="label_browse_by_interests" href="interests" class="byTextsFont">by interests</a>:
63            <span tal:repeat="result results">
64                <a href="" tal:attributes="href python:'interests?getInterests='+here.url_quote(result)" tal:content="result">PLACEHOLDER</a>,
65            </span>
66            <a href="interests">...</a>
67        </li>
68    </ul>
69
70
71    <h1 i18n:translate="heading_browse_groups">Browse groups</h1>
72   
73    <ul>
74        <li><a i18n:translate="label_browse_by_name" href="groups" class="byTextsFont">by name</a></li>
75
76        <li tal:define="results python:here.getTopResults(group_results, 'getTags')">
77            <a i18n:translate="label_browse_by_tags" href="tags" class="byTextsFont">by tags</a>:
78            <span tal:repeat="result results">
79                <a href="" tal:attributes="href python:'tags?getTags='+here.url_quote(result)" tal:content="result">PLACEHOLDER</a>,
80            </span>
81            <a href="tags">...</a>
82        </li>
83
84        <li tal:define="results python:here.getTopResults(group_results, 'getLanguage_skills')">
85            <a i18n:translate="label_browse_by_language" href="group_language" class="byTextsFont">by language</a>:
86            <span tal:repeat="result results">
87                <a href="" tal:attributes="href python:'group_language?getLanguage_skills='+here.url_quote(result)" tal:content="python:here.script_getPrettyLanguage(result)">PLACEHOLDER</a>,
88            </span>
89            <a href="group_language">...</a>
90        </li>
91       
92    </ul>
93   
94       <tal:group_recent_define define="recents here/mergeLatestPostsInMyGroups;">
95            <h2 i18n:translate="heading_my_groups" tal:condition="recents">My groups</h2>
96            <ul tal:repeat="post recents">
97                <li tal:define="posterid post/Creator;
98                   poster python:mtool.getHomeFolder(posterid);
99                   post_modified post/ModificationDate;
100                   group post/getBlog;
101                    ">
102                <div class="documentByLine">
103                   <tal:modified>
104                       &mdash;
105                       <span tal:replace="python:toLocalizedTime(post_modified,long_format=1)">
106                         August 16, 2001 at 23:35:59
107                       </span>
108                   </tal:modified>   
109                   <tal:block i18n:translate="text_group_author_wrote">In
110                   <a i18n:name="groupname" href="#" tal:attributes="href group/absolute_url" tal:content="group/title">group</a>
111                   <a i18n:name="username" href="#" tal:attributes="href poster/absolute_url" tal:content="poster/NiceName">name</a> wrote:</tal:block><br/>
112                </div>
113                   <a href="#" tal:attributes="href post/absolute_url" tal:content="post/title">PLACEHOLDER</a>               
114                   <metal:fieldMacro use-macro="python:post.widget('bodyText',mode='view')"/>
115                </li>
116            </ul>
117       </tal:group_recent_define>
118
119   
120    <tal:collaborations condition="here/getCollaboration_proposals">
121        <h2 i18n:translate="heading_collaboration_proposals">Collaboration proposals</h2>   
122        <ul tal:repeat="uid here/getCollaboration_proposals">
123            <li tal:define="post python:context.uid_catalog(UID=uid);
124                    post python:post[0].getObject();
125                    posterid post/Creator;
126                    poster python:mtool.getHomeFolder(posterid);
127                    post_modified post/ModificationDate;
128                    group post/getBlog;
129                    ">
130              <div class="documentByLine">
131               <tal:modified>
132                   &mdash;
133                   <span tal:replace="python:toLocalizedTime(post_modified,long_format=1)">
134                     August 16, 2001 at 23:35:59
135                   </span>
136               </tal:modified>
137               <tal:block i18n:translate="text_user_from_group_wrote"><a href="#" i18n:name="username" tal:attributes="href poster/absolute_url" tal:content="poster/NiceName">name</a> from
138               <a i18n:name="groupname" href="#" tal:attributes="href group/absolute_url" tal:content="group/title">group</a> wrote:</tal:block><br />
139              </div>
140               <a href="#" tal:attributes="href post/absolute_url" tal:content="post/title">PLACEHOLDER</a>               
141               <metal:fieldMacro use-macro="python:post.widget('bodyText',mode='view')"/>
142            </li>
143        </ul>
144    </tal:collaborations>
145
146
147   
148</div>
149   
150  </body>
151</html>
152
Note: See TracBrowser for help on using the repository browser.