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

Revision 1250, 7.4 KB checked in by pjotr, 13 years ago (diff)

Additional change. Previous reference went wrong. Refs #913

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