Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
51f69ab2
Commit
51f69ab2
authored
Aug 26, 2020
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_discussion: display discussion url instead of author url
parent
98e72868
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
22 deletions
+5
-22
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewAuthorWidget.zpt
...ins/erp5_discussion/DiscussionThread_viewAuthorWidget.zpt
+3
-10
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewLastPostWidget.zpt
...s/erp5_discussion/DiscussionThread_viewLastPostWidget.zpt
+2
-12
No files found.
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewAuthorWidget.zpt
View file @
51f69ab2
<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
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewLastPostWidget.zpt
View file @
51f69ab2
<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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment