Commit 51f69ab2 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_discussion: display discussion url instead of author url

parent 98e72868
<tal:block tal:define="author_dict python: here.objectValues()[0].DiscussionPost_getAuthorDict();
is_author_link_available python:author_dict['author_url'] is not None;">
<tal:block tal:define="author_dict python: here.objectValues()[0].DiscussionPost_getAuthorDict();">
<a class="listbox-row-discussion-thread-author-link"
tal:attributes="href author_dict/author_url"
tal:content="author_dict/author_title"
tal:condition="is_author_link_available"/>
<span tal:content="author_dict/author_title"
tal:condition="not:is_author_link_available"/>
tal:attributes="href python: '%s/view' %(here.getReference())"
tal:content="author_dict/author_title"/>
</tal:block>
\ No newline at end of file
<tal:block tal:define="last_post here/DiscussionThread_getLastPost;
author_dict last_post/DiscussionPost_getAuthorDict;
is_author_link_available python:author_dict['author_url'] is not None;">
<a class="listbox-row-discussion-thread-last-post-by-author-link"
tal:attributes="href author_dict/author_url"
tal:content="author_dict/author_title"
tal:condition="is_author_link_available"/>
<span tal:content="author_dict/author_title"
tal:condition="not:is_author_link_available"/>
author_dict last_post/DiscussionPost_getAuthorDict;">
<a class="listbox-row-discussion-thread-last-post-link"
tal:attributes="href python: '%s/view?list_start=%s&reset=1#%s' %(here.getReference(), last_post.getId(), last_post.getUid())">
<span tal:content="author_dict/author_title"></span>
<img src="document_icon.gif" alt="Link To Post"/>
</a>
</tal:block>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment