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(); <tal:block tal:define="author_dict python: here.objectValues()[0].DiscussionPost_getAuthorDict();">
is_author_link_available python:author_dict['author_url'] is not None;">
<a class="listbox-row-discussion-thread-author-link" <a class="listbox-row-discussion-thread-author-link"
tal:attributes="href author_dict/author_url" tal:attributes="href python: '%s/view' %(here.getReference())"
tal:content="author_dict/author_title" 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:block> </tal:block>
\ No newline at end of file
<tal:block tal:define="last_post here/DiscussionThread_getLastPost; <tal:block tal:define="last_post here/DiscussionThread_getLastPost;
author_dict last_post/DiscussionPost_getAuthorDict; 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"/>
<a class="listbox-row-discussion-thread-last-post-link" <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())"> 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"/> <img src="document_icon.gif" alt="Link To Post"/>
</a> </a>
</tal:block> </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