Permalink
Browse files

display organization & role, and fix issue if description is None

  • Loading branch information...
kagesenshi committed Mar 18, 2012
1 parent 2bbbeb9 commit 32839bb2020857be6385f827e7f1c82d2aa1df06
@@ -55,6 +55,7 @@ def content_tabs(self):
def text_to_html(self, text):
+ text = text or ''
pt = getToolByName(self.context, 'portal_transforms')
return pt.convertTo('text/html', text, mimetype='text/plain').getData()
@@ -29,10 +29,22 @@
<dl class="dl-horizontal">
<dt>Email:</dt>
<dd tal:content="python:(context.email or '').replace('@',' (at) ')">vader@empire.com</dd>
+
+ <tal:block condition="context/organization">
+ <dt>Organization / Company</dt>
+ <dd tal:content="context/organization"></dd>
+ </tal:block>
+
+ <tal:block condition="context/position">
+ <dt>Position / Role in Organization</dt>
+ <dd tal:content="context/position"></dd>
+ </tal:block>
+
<tal:block condition="context/country">
<dt>Country:</dt>
<dd tal:content="context/country">Tatooine</dd>
</tal:block>
+
<tal:block condition="context/description">
<dt>Bio:</dt>
<dd><p tal:replace="structure python:text_to_html(context.description)"></p></dd>
@@ -46,7 +58,7 @@
tal:condition="sessions">
<div class="row-fluid">
<div class="page-header">
- <h3>Topic Presented</h3>
+ <h3>Sessions</h3>
</div>
<div class="span1">&nbsp;</div>
<div class="span11">

0 comments on commit 32839bb

Please sign in to comment.