Commit 20973fbd authored by Ivan Tyagov's avatar Ivan Tyagov

Render link to last post in the context of other post (using anchor).

Clean up Discussion Thread and add listbox CSS styling.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35894 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7591e7f6
...@@ -56,8 +56,6 @@ ...@@ -56,8 +56,6 @@
<key> <string>group_list</string> </key> <key> <string>group_list</string> </key>
<value> <value>
<list> <list>
<string>left (Document Reference)</string>
<string>right (Publication Information)</string>
<string>left</string> <string>left</string>
<string>right</string> <string>right</string>
<string>center</string> <string>center</string>
...@@ -94,12 +92,6 @@ ...@@ -94,12 +92,6 @@
</item> </item>
<item> <item>
<key> <string>left</string> </key> <key> <string>left</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>left (Document Reference)</string> </key>
<value> <value>
<list> <list>
<string>my_title</string> <string>my_title</string>
...@@ -112,13 +104,6 @@ ...@@ -112,13 +104,6 @@
<value> <value>
<list> <list>
<string>my_subject_list</string> <string>my_subject_list</string>
</list>
</value>
</item>
<item>
<key> <string>right (Publication Information)</string> </key>
<value>
<list>
<string>my_classification</string> <string>my_classification</string>
<string>my_group_list</string> <string>my_group_list</string>
<string>my_site_list</string> <string>my_site_list</string>
......
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>method_name</string> </key> <key> <string>method_name</string> </key>
<value> <string>contentValues</string> </value> <value> <string>searchFolder</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
<item> <item>
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list/> <list>
<string>enabled</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -72,6 +74,10 @@ ...@@ -72,6 +74,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>enabled</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_reference</string> </value> <value> <string>my_reference</string> </value>
......
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
<item> <item>
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list/> <list>
<string>enabled</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -72,6 +74,10 @@ ...@@ -72,6 +74,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>enabled</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_subject_list</string> </value> <value> <string>my_subject_list</string> </value>
......
...@@ -9,6 +9,14 @@ ...@@ -9,6 +9,14 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>enabled</string>
</list>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_translated_validation_state_title</string> </value> <value> <string>my_translated_validation_state_title</string> </value>
...@@ -66,6 +74,10 @@ ...@@ -66,6 +74,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>enabled</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_translated_workflow_state_title</string> </value> <value> <string>my_translated_workflow_state_title</string> </value>
......
...@@ -40,12 +40,13 @@ ...@@ -40,12 +40,13 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<tal:block tal:define="last_post here/DiscussionThread_getLastPost;\n <tal:block tal:define="last_post here/DiscussionThread_getLastPost;\n
author_dict last_post/DiscussionPost_getAuthorDict">\n author_dict last_post/DiscussionPost_getAuthorDict;\n
">\n
<a class="listbox-row-discussion-thread-last-post-by-author-link"\n <a class="listbox-row-discussion-thread-last-post-by-author-link"\n
tal:attributes="href author_dict/author_url"\n tal:attributes="href author_dict/author_url"\n
tal:content="author_dict/author_title"/> \n tal:content="author_dict/author_title"/> \n
<a class="listbox-row-discussion-thread-last-post-link"\n <a class="listbox-row-discussion-thread-last-post-link"\n
tal:attributes="href python: \'%s/view\' %last_post.absolute_url()"> \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 <img src="document_icon.gif" alt="Link To Post"/>\n
</a>\n </a>\n
\n \n
......
...@@ -114,7 +114,8 @@ ...@@ -114,7 +114,8 @@
\n \n
<div class="discussion-post-header">\n <div class="discussion-post-header">\n
<div class="discussion-post-title-container">\n <div class="discussion-post-title-container">\n
<a tal:attributes="href string:${event_url}/view">\n <a tal:attributes="href string:${event_url}/view;\n
\t\t name event_uid">\n
<div class="discussion-post-title"\n <div class="discussion-post-title"\n
tal:content="event_title"/>\n tal:content="event_title"/>\n
</a>\n </a>\n
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts72891835.3</string> </value> <value> <string>ts75477345.03</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -30,10 +30,15 @@ ...@@ -30,10 +30,15 @@
<value> <string>/*\n <value> <string>/*\n
ERP5 discussion forum.\n ERP5 discussion forum.\n
*/\n */\n
\n
/* listbox navigation */\n
div.discussion-post-listbox-navigation{\n div.discussion-post-listbox-navigation{\n
width: 100%; \n width: 100%; \n
text-align: center;\n text-align: center;\n
}\n }\n
div.discussion-post-listbox-navigation a.selected{\n
font-weight: bold!important;\n
}\n
\n \n
div.discussion-post-listbox-row{\n div.discussion-post-listbox-row{\n
margin: 5px; \n margin: 5px; \n
...@@ -116,7 +121,8 @@ blockquote {\n ...@@ -116,7 +121,8 @@ blockquote {\n
border:1px solid #8CACBB;\n border:1px solid #8CACBB;\n
margin:5px;\n margin:5px;\n
padding:10px 15px;\n padding:10px 15px;\n
}</string> </value> }\n
</string> </value>
</item> </item>
<item> <item>
<key> <string>precondition</string> </key> <key> <string>precondition</string> </key>
...@@ -124,7 +130,7 @@ blockquote {\n ...@@ -124,7 +130,7 @@ blockquote {\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>1442</int> </value> <value> <int>1553</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
57 58
\ No newline at end of file \ 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