Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…unction_thats_return_a_list()"

close #77
  • Loading branch information...
commit f0ce9e19339ab78e1cf9c1523dbc4811e9df0725 1 parent 223cc15
@sassur sassur authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 voteit/core/views/templates/discussions.pt
View
6 voteit/core/views/templates/discussions.pt
@@ -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 @@
</span>
<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>
Please sign in to comment.
Something went wrong with that request. Please try again.