portlet_profile のソース
プロフィール情報を表示するポートレットのソースコードです。
サイズ 2.8 kB - File type text/htmlファイルのコンテンツ
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
i18n:domain="plone">
<body>
<!-- The Profile box -->
<div metal:define-macro="portlet"
tal:omit-tag="">
<tal:block tal:condition="python: not isAnon
and not request.URL.endswith('Members/index_html')
and not request.URL.endswith('Members/member_search_results')" >
<tal:block tal:define="creator here/Creator;
dispname python:here.getDispname(id=creator);
mem python:here.getMemberById(id=creator)">
<div class="portlet" id="portlet-profile">
<h5 tal:content="string:${dispname}さんのプロフィール">Member's profile</h5>
<div class="portletBody">
<div class="portletContent odd"
style="text-align: center;"
tal:define="portrait python:mtool.getPersonalPortrait(member_id=creator);">
<img src="" alt=""
class="portraitPhoto"
tal:condition="python:portrait.id != 'defaultUser.gif'"
tal:attributes="src string:${portrait/absolute_url}/thumb?width=192&height=192"
/>
<img src="" alt=""
class="portraitPhoto"
tal:condition="python:portrait.id == 'defaultUser.gif'"
tal:attributes="src string:${portrait/absolute_url}"
/>
</div>
<table cellpadding="2px" cellspacing="0" width="100%">
<tbody>
<tr class="even">
<td i18n:translate="label_full_name">Full Name</td>
<td tal:content="python:mem.getProperty('fullname')">fullname</td>
</tr>
<tr class="odd">
<td><nobr i18n:translate="label_nick_name">Nick Name</nobr></td>
<td tal:content="python:mem.getProperty('nickname')">nockname</td>
</tr>
<tr class="even">
<td i18n:translate="label_email">Email</td>
<td tal:define="email python:mem.getProperty('email')">
<a href="" tal:content="email"
tal:attributes="href string:mailto:${email}">email</a></td>
</tr>
<tr class="odd">
<td i18n:translate="label_organization">Organization</td>
<td tal:content="python:mem.getProperty('organization')">organization</td>
</tr>
<tr class="even">
<td i18n:translate="label_sex">Sex</td>
<td tal:content="python:mem.getProperty('sex')" i18n:translate="">sex</td>
</tr>
<tr class="odd">
<td i18n:translate="label_blood">Blood</td>
<td tal:content="python:mem.getProperty('blood')">blood</td>
</tr>
</tbody>
</table>
</div>
</div>
</tal:block>
</tal:block>
</div>
</body>
</html>
Click here to get the file