Commit 0cbd06d5 authored by Ivan Tyagov's avatar Ivan Tyagov

More user friendly date formatting.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42581 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7284605b
...@@ -39,8 +39,7 @@ ...@@ -39,8 +39,7 @@
<script src="erp5_discussion.js" type="text/javascript"></script>\n <script src="erp5_discussion.js" type="text/javascript"></script>\n
<link href="erp5_discussion.css" rel="stylesheet" type="text/css">\n <link href="erp5_discussion.css" rel="stylesheet" type="text/css">\n
\n \n
<tal:block \n <tal:block tal:define="discussion_post_object here/getObject;\n
tal:define="discussion_post_object here/getObject;\n
author_dict discussion_post_object/DiscussionPost_getAuthorDict;\n author_dict discussion_post_object/DiscussionPost_getAuthorDict;\n
author_url author_dict/author_url;\n author_url author_dict/author_url;\n
author_signature author_dict/author_signature;\n author_signature author_dict/author_signature;\n
...@@ -49,7 +48,7 @@ ...@@ -49,7 +48,7 @@
discussion_post_uid discussion_post_object/getUid;\n discussion_post_uid discussion_post_object/getUid;\n
discussion_post_title discussion_post_object/getTitle;\n discussion_post_title discussion_post_object/getTitle;\n
discussion_post_url discussion_post_object/getAbsoluteUrl;\n discussion_post_url discussion_post_object/getAbsoluteUrl;\n
discussion_post_creation_date discussion_post_object/getCreationDate;\n discussion_post_creation_date python: here.Base_FormatDate(discussion_post_object.getCreationDate());\n
discussion_post_validation_state_title discussion_post_object/getTranslatedValidationStateTitle;\n discussion_post_validation_state_title discussion_post_object/getTranslatedValidationStateTitle;\n
discussion_post_stripped_html discussion_post_object/asStrippedHTML;\n discussion_post_stripped_html discussion_post_object/asStrippedHTML;\n
isUserAllowedToPost python: discussion_post_object.getParentValue().DiscussionThread_isUserAllowedToPost()">\n isUserAllowedToPost python: discussion_post_object.getParentValue().DiscussionThread_isUserAllowedToPost()">\n
...@@ -59,15 +58,15 @@ ...@@ -59,15 +58,15 @@
<a class="discussion-post-title"\n <a class="discussion-post-title"\n
tal:attributes="href string:${discussion_post_url}/view;\n tal:attributes="href string:${discussion_post_url}/view;\n
name discussion_post_uid"\n name discussion_post_uid"\n
tal:content="discussion_post_title"/>\n tal:content="discussion_post_title"></a>\n
\n \n
<div class="discussion-post-creator">\n <div class="discussion-post-creator">\n
by \n by \n
<a class="discussion-post-creator-title-link"\n <a class="discussion-post-creator-title-link"\n
tal:attributes="href author_url"\n tal:attributes="href author_url"\n
tal:content="author_title"/> \n tal:content="author_title"></a> \n
on \n on \n
<tal:block tal:replace="discussion_post_creation_date"/>\n <tal:block tal:replace="discussion_post_creation_date" />\n
</div>\n </div>\n
\n \n
</div>\n </div>\n
...@@ -76,18 +75,17 @@ ...@@ -76,18 +75,17 @@
<div class="discussion-post-body-container">\n <div class="discussion-post-body-container">\n
\n \n
<div class="discussion-post-body"\n <div class="discussion-post-body"\n
tal:content="structure discussion_post_stripped_html"/>\n tal:content="structure discussion_post_stripped_html"></div>\n
\n \n
</div>\n </div>\n
\n \n
<!-- Signature -->\n <!-- Signature -->\n
<div tal:condition="python: author_signature is not None"\n <div tal:condition="python: author_signature is not None"\n
class="discussion-post-author-signature-container" \n class="discussion-post-author-signature-container"\n
tal:content="author_signature"/>\n tal:content="author_signature"></div>\n
\n \n
<button tal:condition="isUserAllowedToPost" \n <button tal:condition="isUserAllowedToPost" type="submit"\n
type="submit" \n title="Reply"\n
title="Reply" \n
name="DiscussionThread_redirectCreateNewDiscussionPost:method"\n name="DiscussionThread_redirectCreateNewDiscussionPost:method"\n
tal:attributes="onClick python: \'redirectCreateCitedNewDiscussionPost(\\\'%s\\\')\' %discussion_post_id"\n tal:attributes="onClick python: \'redirectCreateCitedNewDiscussionPost(\\\'%s\\\')\' %discussion_post_id"\n
class="discussion-post-action-button">Reply</button>\n class="discussion-post-action-button">Reply</button>\n
...@@ -96,13 +94,17 @@ ...@@ -96,13 +94,17 @@
]]></unicode> </value> ]]></unicode> </value>
</item> </item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>DiscussionPost_getSummaryAsHTML</string> </value> <value> <string>DiscussionPost_getSummaryAsHTML</string> </value>
</item> </item>
<item> <item>
<key> <string>output_encoding</string> </key> <key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value> <value> <string>iso-8859-15</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<string>default</string> <string>default</string>
<string>editable</string> <string>editable</string>
<string>title</string> <string>title</string>
<string>width</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -120,6 +121,10 @@ ...@@ -120,6 +121,10 @@
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Body</string> </value> <value> <string>Body</string> </value>
</item> </item>
<item>
<key> <string>width</string> </key>
<value> <int>80</int> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
......
83 84
\ 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