Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
b6a7008c
Commit
b6a7008c
authored
May 19, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not show links to author if it's an anonymous user.
parent
b2f7c2b1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
10 deletions
+33
-10
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getAuthorDict.xml
...al_skins/erp5_discussion/DiscussionPost_getAuthorDict.xml
+5
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewAuthorWidget.xml
...ins/erp5_discussion/DiscussionThread_viewAuthorWidget.xml
+10
-4
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewLastPostWidget.xml
...s/erp5_discussion/DiscussionThread_viewLastPostWidget.xml
+9
-4
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/ERP5Site_viewDiscussionThreadForm/listbox.xml
..._discussion/ERP5Site_viewDiscussionThreadForm/listbox.xml
+8
-0
bt5/erp5_discussion/bt/revision
bt5/erp5_discussion/bt/revision
+1
-1
No files found.
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getAuthorDict.xml
View file @
b6a7008c
...
...
@@ -56,7 +56,7 @@
portal = context.getPortalObject()\n
\n
author = context.getSourceValue()\n
result = {\'author_url\':
\'#\'
,\n
result = {\'author_url\':
None
,\n
\'author_signature\': None,\n
\'author_title\': context.Base_translateString(\'Unknown User\')}\n
\n
...
...
@@ -68,6 +68,10 @@ if author is not None:\n
return result\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
<value>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewAuthorWidget.xml
View file @
b6a7008c
...
...
@@ -36,12 +36,18 @@
<key>
<string>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<tal:block tal:define="author_dict python: here.DiscussionPost_getAuthorDict()">
\n
<tal:block tal:define="author_dict python: here.DiscussionPost_getAuthorDict();\n
is_author_link_available python:author_dict[\'author_url\'] is not None;">
\n
\n
<a
class=
"listbox-row-discussion-thread-author-link"
\n
tal:attributes=
"href author_dict/author_url"
\n
tal:content=
"author_dict/author_title"
/>
\n
</tal:block>
\n
tal:content=
"author_dict/author_title"
\n
tal:condition=
"is_author_link_available"
/>
\n
\n
<span
tal:content=
"author_dict/author_title"
\n
tal:condition=
"not:is_author_link_available"
/>
\n
\n
</tal:block>
]]>
</unicode>
</value>
</item>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewLastPostWidget.xml
View file @
b6a7008c
...
...
@@ -38,17 +38,22 @@
<tal:block tal:define="last_post here/DiscussionThread_getLastPost;\n
author_dict last_post/DiscussionPost_getAuthorDict;\n
">
\n
is_author_link_available python:author_dict[\'author_url\'] is not None;">
\n
\n
<a
class=
"listbox-row-discussion-thread-last-post-by-author-link"
\n
tal:attributes=
"href author_dict/author_url"
\n
tal:content=
"author_dict/author_title"
/>
\n
tal:content=
"author_dict/author_title"
\n
tal:condition=
"is_author_link_available"
/>
\n
\n
<span
tal:content=
"author_dict/author_title"
\n
tal:condition=
"not:is_author_link_available"
/>
\n
\n
<a
class=
"listbox-row-discussion-thread-last-post-link"
\n
tal:attributes=
"href python: \'%s/view?list_start=%s&reset=1#%s\' %(here.absolute_url(), last_post.getId(), last_post.getUid())"
>
\n
<img
src=
"document_icon.gif"
alt=
"Link To Post"
/>
\n
</a>
\n
\n
</tal:block>
\n
</tal:block>
]]>
</unicode>
</value>
</item>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/ERP5Site_viewDiscussionThreadForm/listbox.xml
View file @
b6a7008c
...
...
@@ -279,6 +279,14 @@
<string>
response_count
</string>
<string></string>
</tuple>
<tuple>
<string>
author
</string>
<string></string>
</tuple>
<tuple>
<string>
last_post
</string>
<string></string>
</tuple>
<tuple>
<string>
title
</string>
<string>
ListBox_getDiscussionThreadUrl
</string>
...
...
bt5/erp5_discussion/bt/revision
View file @
b6a7008c
92
\ No newline at end of file
93
\ 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