Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

i18ndude can't handle template syntax tal:define="(var1, var2) some_f…


close #77
  • Loading branch information...
1 parent 223cc15 commit f0ce9e19339ab78e1cf9c1523dbc4811e9df0725 @sassur sassur committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 voteit/core/views/templates/
6 voteit/core/views/templates/
@@ -19,7 +19,7 @@
<tal:iterate condition="discussions" repeat="post discussions">
<div tal:define="unread api.is_brain_unread(post);
- (text, truncated) truncate(post['title'], truncate_length)"
+ truncated truncate(post['title'], truncate_length)"
tal:attributes="class unread and 'unread listing_block' or 'listing_block';
name post['name'];
id post['name'];">
@@ -29,8 +29,8 @@
<tal:creators tal:replace="structure api.get_creators_info(post['creators'], request)">Creators</tal:creators>
- <span class="body" tal:content="structure text">text</span>
- <span class="more" tal:condition="truncated"><a tal:attributes="href '%s%s/@@more' % (request.application_url, post['path'])" i18n:translate="">Read more</a></span>
+ <span class="body" tal:content="structure truncated[0]">text</span>
+ <span class="more" tal:condition="truncated[1]"><a tal:attributes="href '%s%s/@@more' % (request.application_url, post['path'])" i18n:translate="">Read more</a></span>
<div class="meta">
<span class="time" tal:content="api.dt_util.relative_time_format(post['created'])"></span>
<span class="hyphen">&#45;</span>

0 comments on commit f0ce9e1

Please sign in to comment.
Something went wrong with that request. Please try again.