Changeset 2087 in products for quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments
- Timestamp:
- Apr 8, 2010 3:39:31 PM (14 years ago)
- Location:
- quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/browser/comments.pt
r1840 r2087 48 48 <span i18n:translate="label_commented_at">at</span> 49 49 <span tal:replace="python:view.format_time(reply.ModificationDate())">8/23/2001 12:40:44 PM</span> 50 <span tal:condition="python:ifModerate and not isPublished">[pending]</span> 50 <span i18n:domain="quintagroup.plonecomments" 51 i18n:translate="label_pending_state" 52 tal:condition="python:ifModerate and not isPublished">[pending]</span> 51 53 </div> 52 54 <div class="commentBody" … … 63 65 type="submit" 64 66 value="Reply" 67 tal:define="onclick string:javascript:render_edit_form(${comment_id},'reply')" 68 tal:attributes="onclick python:isAjaxReportAbuseEnabled and onclick or ''" 65 69 i18n:attributes="value label_reply;" 66 70 /> … … 75 79 type="submit" 76 80 value="Edit" 81 tal:define="onclick string:javascript:render_edit_form(${comment_id},'edit')" 82 tal:attributes="onclick python:isAjaxReportAbuseEnabled and onclick or ''" 77 83 i18n:attributes="value label_edit;" 78 84 /> … … 87 93 type="submit" 88 94 value="Remove" 95 tal:define="onclick string:javascript:render_delete_comment(${comment_id})" 96 tal:attributes="onclick python:isAjaxReportAbuseEnabled and onclick or ''" 89 97 i18n:attributes="value label_remove;" 90 98 /> 91 99 </form> 92 <tal:if tal:condition="python:isReportAbuseEnabled and isPublished"> 93 <form class="report_abuse" 94 name="report_abuse" 95 method="post" 96 style="display: inline;" 97 i18n:domain="quintagroup.plonecomments" 98 tal:attributes="action string:${reply/absolute_url}/report_abuse_form#discussion"> 99 <input type="hidden" name="comment_id" tal:attributes="value comment_id" /> 100 <input class="standalone" 101 type="submit" 102 value="Report Abuse" 103 tal:define="onclick string:javascript:render_abuse_report_form(${comment_id})" 104 tal:attributes="onclick python:not isAnon and isAjaxReportAbuseEnabled and onclick or ''; 105 id string:input-render-abuse-cancel-${comment_id}" 106 i18n:attributes="value label_report_abuse;" 107 /> 108 </form> 109 <span tal:attributes="id string:span-reply-form-holder-${comment_id}" 110 tal:condition="isReportAbuseEnabled"> 111 <metal:macro use-macro="here/report_abuse_form/macros/form"/> 112 </span> 113 <span tal:attributes="id string:span-abuse-count-holder-${comment_id}"></span> 114 </tal:if> 100 <form name="report_abuse" 101 action="" 102 method="post" 103 style="display: inline;" 104 i18n:domain="quintagroup.plonecomments" 105 tal:condition="python:isReportAbuseEnabled and isPublished" 106 tal:attributes="action string:${reply/absolute_url}/report_abuse_form#discussion"> 107 <input class="standalone" 108 type="submit" 109 value="Report Abuse" 110 tal:define="onclick string:javascript:render_edit_form(${comment_id},'report_abuse')" 111 tal:attributes="onclick python:isAjaxReportAbuseEnabled and onclick or ''" 112 i18n:attributes="value label_report_abuse;" 113 /> 114 </form> 115 115 <form name="publish_discussion" 116 116 action="" … … 131 131 i18n:domain="quintagroup.plonecomments" 132 132 tal:condition="not:isPublished">Comment must be approved before replies to comment accepted.</div> 133 <span tal:attributes="id string:span-forms-holder-${comment_id}"></span> 133 134 </div> 134 135 </tal:getreplies> 135 136 136 137 <!-- Start of Adding comment form--> 137 <tal:addcomment define="template_id string:discussion_reply_form;"> 138 <form id="reply" 139 name="reply" 140 action="" 141 method="post" 142 tal:condition="python:isAjaxReportAbuseEnabled and userHasReplyPermission and isDiscussionAllowed" 143 tal:attributes="action string:${context/absolute_url}/discussion_reply_form"> 144 145 <input class="standalone" 146 style="margin-bottom: 1.25em;" 147 type="button" 148 value="Add Comment" 149 tal:attributes="onclick string:javascript:render_comment_form()" 150 i18n:attributes="value label_add_comment;" 151 /> 152 </form> 153 154 <tal:addcomment condition="python:not isAjaxReportAbuseEnabled" 155 define="template_id string:discussion_reply_form;"> 138 156 <metal:block metal:use-macro="here/discussion_reply_form/macros/add-comment-form" /> 139 157 </tal:addcomment> -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/browser/comments.py
r1625 r2087 106 106 """ """ 107 107 return getToolByName(self.context, 'portal_url') 108 109 110 111 class CommentsKSS(PloneKSSView):112 """ Operations on the report abuse form using KSS.113 """114 115 def submit_abuse_report(self):116 """ Send an email with the abuse report message and hide abuse report form.117 """118 errors = {}119 context = aq_inner(self.context)120 request = context.REQUEST121 portal = getToolByName(self.context, 'portal_url').getPortalObject()122 if hasattr(context, 'captcha_validator'):123 dummy_controller_state = ControllerState(124 id='comments.pt',125 context=context,126 button='submit',127 status='success',128 errors={},129 next_action=None,)130 # get the form controller131 controller = portal.portal_form_controller132 # send the validate script to the form controller with the dummy state object133 controller_state = controller.validate(dummy_controller_state, request, ['captcha_validator',])134 errors.update(controller_state.errors)135 136 message = request.get('message')137 if not message:138 errors.update({'message': 'Please provide a message'})139 140 mtool = getToolByName(self.context, "portal_membership")141 member = mtool.getAuthenticatedMember()142 comment_id = self.context.request.get('comment_id')143 ksscore = self.getCommandSet('core')144 if errors:145 html = self.macroContent('context/report_abuse_form/macros/form',146 errors=errors,147 show_form=True,148 tabindex=IndexIterator(),149 member=member,150 **request.form)151 node = ksscore.getHtmlIdSelector('span-reply-form-holder-%s' % comment_id)152 ksscore.replaceInnerHTML(node, html)153 return self.render()154 155 # report_abuse(context, context, message, comment)156 manage_mails(context, self.context, 'report_abuse')157 158 html = self.macroContent('context/report_abuse_form/macros/form',159 tabindex=IndexIterator(),160 member=member,161 **request.form)162 node = ksscore.getHtmlIdSelector('span-reply-form-holder-%s' % comment_id)163 html = '<br/><span style="color:red">You have reported this comment for abuse.</span>'164 self.commands.addCommand('remove_abuse_report_form',165 node,166 comment_id=comment_id,167 html=html)168 169 node = ksscore.getHtmlIdSelector('div-captcha-%s' % comment_id)170 html = self.macroContent('context/report_abuse_form/macros/captcha',171 **request.form)172 ksscore.replaceInnerHTML(node, html)173 return self.render() -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/locales/de/LC_MESSAGES/quintagroup.plonecomments.po
r1718 r2087 5 5 msgstr "" 6 6 "Project-Id-Version: PACKAGE VERSION\n" 7 "POT-Creation-Date: 2010-0 2-11 16:40+0000\n"7 "POT-Creation-Date: 2010-04-08 15:31+0000\n" 8 8 "PO-Revision-Date: 2006-12-29 11:01+0100\n" 9 9 "Last-Translator: \n" … … 36 36 msgstr "Kommentar(e) veröffentlicht." 37 37 38 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:2 2838 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:235 39 39 msgid "Could not send the email notification. Have you configured an email server for Plone?" 40 40 msgstr "" … … 84 84 85 85 #. Default: "[${organization_name}] New comment awaits moderation" 86 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 8686 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:193 87 87 msgid "approve_notification_subject" 88 88 msgstr "" 89 89 90 90 #. Default: "Your comment on ${title} is now published" 91 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 1491 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:121 92 92 msgid "approve_user_notification_subject" 93 93 msgstr "" … … 97 97 msgid "approvemail_new_comment_link" 98 98 msgstr "Bitte schalten Sie den neuen Kommentar auf der Seite ' ${title} ': ${here_url} frei " 99 100 #. Default: "You can edit a comment by filling out the form below. Plain text formatting." 101 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:38 102 msgid "description_edit_comment" 103 msgstr "" 99 104 100 105 #. Default: "Enable Manager moderation" … … 227 232 msgstr "Email Betreff" 228 233 234 #. Default: "[pending]" 235 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:50 236 msgid "label_pending_state" 237 msgstr "" 238 229 239 #. Default: "Report Abuse" 230 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:10 0240 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:107 231 241 msgid "label_report_abuse" 232 242 msgstr "" … … 235 245 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/prefs_comments_setup_form.cpt:96 236 246 msgid "label_require_anonym_email" 247 msgstr "" 248 249 #. Default: "Edit comment" 250 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:36 251 msgid "legend_edit_comment" 237 252 msgstr "" 238 253 … … 273 288 274 289 #. Default: "[${organization_name}] New comment added" 275 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:17 1290 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:178 276 291 msgid "published_notification_subject" 277 292 msgstr "" … … 293 308 294 309 #. Default: "Your comment on ${title} was not approved" 295 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 29310 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:136 296 311 msgid "rejected_user_notification_subject" 297 312 msgstr "" 298 313 299 314 #. Default: "Someone replied to your comment on ${title}" 300 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 45315 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:152 301 316 msgid "reply_user_notification_subject" 302 317 msgstr "" … … 308 323 309 324 #. Default: "[${organization_name}] A comment on ${title} has been reported for abuse." 310 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:21 1325 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:218 311 326 msgid "report_abuse_subject" 312 327 msgstr "" -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/locales/es/LC_MESSAGES/quintagroup.plonecomments.po
r1718 r2087 5 5 msgstr "" 6 6 "Project-Id-Version: qPloneComments\n" 7 "POT-Creation-Date: 2010-0 2-11 16:40+0000\n"7 "POT-Creation-Date: 2010-04-08 15:31+0000\n" 8 8 "PO-Revision-Date: 2007-04-19 20:21-0600\n" 9 9 "Last-Translator: Héctor Velarde <hvelarde@jornada.com.mx>\n" … … 36 36 msgstr "Comentario(s) publicados." 37 37 38 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:2 2838 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:235 39 39 msgid "Could not send the email notification. Have you configured an email server for Plone?" 40 40 msgstr "" … … 84 84 85 85 #. Default: "[${organization_name}] New comment awaits moderation" 86 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 8686 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:193 87 87 msgid "approve_notification_subject" 88 88 msgstr "" 89 89 90 90 #. Default: "Your comment on ${title} is now published" 91 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 1491 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:121 92 92 msgid "approve_user_notification_subject" 93 93 msgstr "" … … 97 97 msgid "approvemail_new_comment_link" 98 98 msgstr "Por favor revise el nuevo comentario agregado a la siguiente página ' ${title} ': ${here_url}" 99 100 #. Default: "You can edit a comment by filling out the form below. Plain text formatting." 101 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:38 102 msgid "description_edit_comment" 103 msgstr "" 99 104 100 105 #. Default: "Enable Manager moderation" … … 227 232 msgstr "Prefijo del asunto del mensaje (nombre de la organización)" 228 233 234 #. Default: "[pending]" 235 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:50 236 msgid "label_pending_state" 237 msgstr "" 238 229 239 #. Default: "Report Abuse" 230 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:10 0240 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:107 231 241 msgid "label_report_abuse" 232 242 msgstr "" … … 235 245 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/prefs_comments_setup_form.cpt:96 236 246 msgid "label_require_anonym_email" 247 msgstr "" 248 249 #. Default: "Edit comment" 250 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:36 251 msgid "legend_edit_comment" 237 252 msgstr "" 238 253 … … 273 288 274 289 #. Default: "[${organization_name}] New comment added" 275 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:17 1290 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:178 276 291 msgid "published_notification_subject" 277 292 msgstr "" … … 293 308 294 309 #. Default: "Your comment on ${title} was not approved" 295 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 29310 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:136 296 311 msgid "rejected_user_notification_subject" 297 312 msgstr "" 298 313 299 314 #. Default: "Someone replied to your comment on ${title}" 300 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 45315 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:152 301 316 msgid "reply_user_notification_subject" 302 317 msgstr "" … … 308 323 309 324 #. Default: "[${organization_name}] A comment on ${title} has been reported for abuse." 310 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:21 1325 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:218 311 326 msgid "report_abuse_subject" 312 327 msgstr "" -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/locales/fr/LC_MESSAGES/quintagroup.plonecomments.po
r1718 r2087 5 5 msgstr "" 6 6 "Project-Id-Version: PACKAGE VERSION\n" 7 "POT-Creation-Date: 2010-0 2-11 16:40+0000\n"7 "POT-Creation-Date: 2010-04-08 15:31+0000\n" 8 8 "PO-Revision-Date: 2006-11-10 08:59-0500\n" 9 9 "Last-Translator: Nicole Turgeon-Courchesne <nicole@motspourmaux.com>\n" … … 36 36 msgstr "Commentaires publiés" 37 37 38 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:2 2838 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:235 39 39 msgid "Could not send the email notification. Have you configured an email server for Plone?" 40 40 msgstr "" … … 84 84 85 85 #. Default: "[${organization_name}] New comment awaits moderation" 86 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 8686 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:193 87 87 msgid "approve_notification_subject" 88 88 msgstr "" 89 89 90 90 #. Default: "Your comment on ${title} is now published" 91 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 1491 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:121 92 92 msgid "approve_user_notification_subject" 93 93 msgstr "" … … 97 97 msgid "approvemail_new_comment_link" 98 98 msgstr "Réviser le nouveau commentaire ajouté à la page suivante ' ${title} ': ${here_url}" 99 100 #. Default: "You can edit a comment by filling out the form below. Plain text formatting." 101 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:38 102 msgid "description_edit_comment" 103 msgstr "" 99 104 100 105 #. Default: "Enable Manager moderation" … … 227 232 msgstr "Préfixe de l’objet du courriel (nom de l’organisme)" 228 233 234 #. Default: "[pending]" 235 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:50 236 msgid "label_pending_state" 237 msgstr "" 238 229 239 #. Default: "Report Abuse" 230 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:10 0240 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:107 231 241 msgid "label_report_abuse" 232 242 msgstr "" … … 235 245 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/prefs_comments_setup_form.cpt:96 236 246 msgid "label_require_anonym_email" 247 msgstr "" 248 249 #. Default: "Edit comment" 250 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:36 251 msgid "legend_edit_comment" 237 252 msgstr "" 238 253 … … 273 288 274 289 #. Default: "[${organization_name}] New comment added" 275 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:17 1290 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:178 276 291 msgid "published_notification_subject" 277 292 msgstr "" … … 293 308 294 309 #. Default: "Your comment on ${title} was not approved" 295 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 29310 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:136 296 311 msgid "rejected_user_notification_subject" 297 312 msgstr "" 298 313 299 314 #. Default: "Someone replied to your comment on ${title}" 300 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 45315 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:152 301 316 msgid "reply_user_notification_subject" 302 317 msgstr "" … … 308 323 309 324 #. Default: "[${organization_name}] A comment on ${title} has been reported for abuse." 310 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:21 1325 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:218 311 326 msgid "report_abuse_subject" 312 327 msgstr "" -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/locales/it/LC_MESSAGES/quintagroup.plonecomments.po
r1718 r2087 5 5 msgstr "" 6 6 "Project-Id-Version: qPloneComments\n" 7 "POT-Creation-Date: 2010-0 2-11 16:40+0000\n"7 "POT-Creation-Date: 2010-04-08 15:31+0000\n" 8 8 "PO-Revision-Date: 2007-04-19 20:21-0600\n" 9 9 "Last-Translator: Yuri Carrer <yurj@alfa.it>\n" … … 36 36 msgstr "Commento(i) pubblicati" 37 37 38 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:2 2838 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:235 39 39 msgid "Could not send the email notification. Have you configured an email server for Plone?" 40 40 msgstr "" … … 84 84 85 85 #. Default: "[${organization_name}] New comment awaits moderation" 86 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 8686 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:193 87 87 msgid "approve_notification_subject" 88 88 msgstr "" 89 89 90 90 #. Default: "Your comment on ${title} is now published" 91 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 1491 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:121 92 92 msgid "approve_user_notification_subject" 93 93 msgstr "" … … 97 97 msgid "approvemail_new_comment_link" 98 98 msgstr "Per favore modera il commento inserito nella pagina ' ${title} ': ${hete_url}" 99 100 #. Default: "You can edit a comment by filling out the form below. Plain text formatting." 101 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:38 102 msgid "description_edit_comment" 103 msgstr "" 99 104 100 105 #. Default: "Enable Manager moderation" … … 227 232 msgstr "Prefisso del messaggio (nome dell' organizzazione)" 228 233 234 #. Default: "[pending]" 235 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:50 236 msgid "label_pending_state" 237 msgstr "" 238 229 239 #. Default: "Report Abuse" 230 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:10 0240 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:107 231 241 msgid "label_report_abuse" 232 242 msgstr "" … … 235 245 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/prefs_comments_setup_form.cpt:96 236 246 msgid "label_require_anonym_email" 247 msgstr "" 248 249 #. Default: "Edit comment" 250 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:36 251 msgid "legend_edit_comment" 237 252 msgstr "" 238 253 … … 273 288 274 289 #. Default: "[${organization_name}] New comment added" 275 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:17 1290 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:178 276 291 msgid "published_notification_subject" 277 292 msgstr "" … … 293 308 294 309 #. Default: "Your comment on ${title} was not approved" 295 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 29310 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:136 296 311 msgid "rejected_user_notification_subject" 297 312 msgstr "" 298 313 299 314 #. Default: "Someone replied to your comment on ${title}" 300 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 45315 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:152 301 316 msgid "reply_user_notification_subject" 302 317 msgstr "" … … 308 323 309 324 #. Default: "[${organization_name}] A comment on ${title} has been reported for abuse." 310 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:21 1325 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:218 311 326 msgid "report_abuse_subject" 312 327 msgstr "" -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/locales/nl/LC_MESSAGES/quintagroup.plonecomments.po
r1718 r2087 4 4 msgstr "" 5 5 "Project-Id-Version: PACKAGE VERSION\n" 6 "POT-Creation-Date: 2010-0 2-11 16:40+0000\n"6 "POT-Creation-Date: 2010-04-08 15:31+0000\n" 7 7 "PO-Revision-Date: 2006-12-29 11:01+0100\n" 8 8 "Last-Translator: Kees Hink\n" … … 35 35 msgstr "" 36 36 37 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:2 2837 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:235 38 38 msgid "Could not send the email notification. Have you configured an email server for Plone?" 39 39 msgstr "" … … 83 83 84 84 #. Default: "[${organization_name}] New comment awaits moderation" 85 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 8685 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:193 86 86 msgid "approve_notification_subject" 87 87 msgstr "" 88 88 89 89 #. Default: "Your comment on ${title} is now published" 90 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 1490 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:121 91 91 msgid "approve_user_notification_subject" 92 92 msgstr "" … … 96 96 msgid "approvemail_new_comment_link" 97 97 msgstr "Bekijk alstublieft het commentaar op de volgende pagina ' ${title} ': ${here_url} " 98 99 #. Default: "You can edit a comment by filling out the form below. Plain text formatting." 100 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:38 101 msgid "description_edit_comment" 102 msgstr "" 98 103 99 104 #. Default: "Enable Manager moderation" … … 226 231 msgstr "Voorvoegsel in onderwerp van email (naam van organisatie)" 227 232 233 #. Default: "[pending]" 234 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:50 235 msgid "label_pending_state" 236 msgstr "" 237 228 238 #. Default: "Report Abuse" 229 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:10 0239 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:107 230 240 msgid "label_report_abuse" 231 241 msgstr "" … … 236 246 msgstr "Anonieme inzenders moeten hun e-mailadres opgeven." 237 247 248 #. Default: "Edit comment" 249 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:36 250 msgid "legend_edit_comment" 251 msgstr "" 252 238 253 #. Default: "Email Notification Options" 239 254 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/prefs_comments_setup_form.cpt:255 … … 272 287 273 288 #. Default: "[${organization_name}] New comment added" 274 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:17 1289 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:178 275 290 msgid "published_notification_subject" 276 291 msgstr "" … … 292 307 293 308 #. Default: "Your comment on ${title} was not approved" 294 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 29309 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:136 295 310 msgid "rejected_user_notification_subject" 296 311 msgstr "" 297 312 298 313 #. Default: "Someone replied to your comment on ${title}" 299 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 45314 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:152 300 315 msgid "reply_user_notification_subject" 301 316 msgstr "" … … 307 322 308 323 #. Default: "[${organization_name}] A comment on ${title} has been reported for abuse." 309 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:21 1324 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:218 310 325 msgid "report_abuse_subject" 311 326 msgstr "" -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/locales/pt-br/LC_MESSAGES/quintagroup.plonecomments.po
r1718 r2087 3 3 msgstr "" 4 4 "Project-Id-Version: qPloneComments\n" 5 "POT-Creation-Date: 2010-0 2-11 16:40+0000\n"5 "POT-Creation-Date: 2010-04-08 15:31+0000\n" 6 6 "PO-Revision-Date: 2008-07-18 03:51-0300\n" 7 7 "Last-Translator: Érico Andrei <erico@simplesconsultoria.com.br>\n" … … 33 33 msgstr "Comentário(s) publicado(s)" 34 34 35 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:2 2835 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:235 36 36 msgid "Could not send the email notification. Have you configured an email server for Plone?" 37 37 msgstr "" … … 81 81 82 82 #. Default: "[${organization_name}] New comment awaits moderation" 83 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 8683 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:193 84 84 msgid "approve_notification_subject" 85 85 msgstr "" 86 86 87 87 #. Default: "Your comment on ${title} is now published" 88 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 1488 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:121 89 89 msgid "approve_user_notification_subject" 90 90 msgstr "" … … 94 94 msgid "approvemail_new_comment_link" 95 95 msgstr "Por favor avalie o novo comentário adicionado à página ' ${title} ': ${here_url}" 96 97 #. Default: "You can edit a comment by filling out the form below. Plain text formatting." 98 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:38 99 msgid "description_edit_comment" 100 msgstr "" 96 101 97 102 #. Default: "Enable Manager moderation" … … 224 229 msgstr "Prefixo do assunto do e-mail (nome do site)" 225 230 231 #. Default: "[pending]" 232 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:50 233 msgid "label_pending_state" 234 msgstr "" 235 226 236 #. Default: "Report Abuse" 227 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:10 0237 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:107 228 238 msgid "label_report_abuse" 229 239 msgstr "" … … 234 244 msgstr "Requerer e-mail de usuários anônimos." 235 245 246 #. Default: "Edit comment" 247 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:36 248 msgid "legend_edit_comment" 249 msgstr "" 250 236 251 #. Default: "Email Notification Options" 237 252 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/prefs_comments_setup_form.cpt:255 … … 270 285 271 286 #. Default: "[${organization_name}] New comment added" 272 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:17 1287 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:178 273 288 msgid "published_notification_subject" 274 289 msgstr "" … … 290 305 291 306 #. Default: "Your comment on ${title} was not approved" 292 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 29307 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:136 293 308 msgid "rejected_user_notification_subject" 294 309 msgstr "" 295 310 296 311 #. Default: "Someone replied to your comment on ${title}" 297 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 45312 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:152 298 313 msgid "reply_user_notification_subject" 299 314 msgstr "" … … 305 320 306 321 #. Default: "[${organization_name}] A comment on ${title} has been reported for abuse." 307 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:21 1322 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:218 308 323 msgid "report_abuse_subject" 309 324 msgstr "" -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/locales/quintagroup.plonecomments.pot
r1718 r2087 5 5 msgstr "" 6 6 "Project-Id-Version: PACKAGE VERSION\n" 7 "POT-Creation-Date: 2010-0 2-11 16:40+0000\n"7 "POT-Creation-Date: 2010-04-08 15:31+0000\n" 8 8 "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" 9 9 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 35 35 msgstr "" 36 36 37 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:2 2837 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:235 38 38 msgid "Could not send the email notification. Have you configured an email server for Plone?" 39 39 msgstr "" … … 83 83 84 84 #. Default: "[${organization_name}] New comment awaits moderation" 85 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 8685 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:193 86 86 msgid "approve_notification_subject" 87 87 msgstr "" 88 88 89 89 #. Default: "Your comment on ${title} is now published" 90 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 1490 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:121 91 91 msgid "approve_user_notification_subject" 92 92 msgstr "" … … 95 95 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/approve_comment_template.pt:10 96 96 msgid "approvemail_new_comment_link" 97 msgstr "" 98 99 #. Default: "You can edit a comment by filling out the form below. Plain text formatting." 100 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:38 101 msgid "description_edit_comment" 97 102 msgstr "" 98 103 … … 226 231 msgstr "" 227 232 233 #. Default: "[pending]" 234 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:50 235 msgid "label_pending_state" 236 msgstr "" 237 228 238 #. Default: "Report Abuse" 229 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:10 0239 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:107 230 240 msgid "label_report_abuse" 231 241 msgstr "" … … 236 246 msgstr "" 237 247 248 #. Default: "Edit comment" 249 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:36 250 msgid "legend_edit_comment" 251 msgstr "" 252 238 253 #. Default: "Email Notification Options" 239 254 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/prefs_comments_setup_form.cpt:255 … … 272 287 273 288 #. Default: "[${organization_name}] New comment added" 274 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:17 1289 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:178 275 290 msgid "published_notification_subject" 276 291 msgstr "" … … 291 306 292 307 #. Default: "Your comment on ${title} was not approved" 293 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 29308 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:136 294 309 msgid "rejected_user_notification_subject" 295 310 msgstr "" 296 311 297 312 #. Default: "Someone replied to your comment on ${title}" 298 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 45313 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:152 299 314 msgid "reply_user_notification_subject" 300 315 msgstr "" … … 306 321 307 322 #. Default: "[${organization_name}] A comment on ${title} has been reported for abuse." 308 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:21 1323 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:218 309 324 msgid "report_abuse_subject" 310 325 msgstr "" -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/locales/uk/LC_MESSAGES/quintagroup.plonecomments.po
r1718 r2087 7 7 msgstr "" 8 8 "Project-Id-Version: qPloneComments\n" 9 "POT-Creation-Date: 2010-0 2-11 16:40+0000\n"9 "POT-Creation-Date: 2010-04-08 15:31+0000\n" 10 10 "PO-Revision-Date: 2008-09-22 10:55+0300\n" 11 11 "Last-Translator: Olha <olha.pelishok@gmail.com>\n" … … 39 39 msgstr "Коментар(і) опубліковано." 40 40 41 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:2 2841 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:235 42 42 msgid "Could not send the email notification. Have you configured an email server for Plone?" 43 43 msgstr "Не вдалося відправити повідомлення по електронній пошті. Ви налаштували сервер електронної пошти для Plone?" … … 87 87 88 88 #. Default: "[${organization_name}] New comment awaits moderation" 89 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 8689 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:193 90 90 msgid "approve_notification_subject" 91 91 msgstr "[${organization_name}] Новий коментар очікує на модерацію" 92 92 93 93 #. Default: "Your comment on ${title} is now published" 94 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 1494 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:121 95 95 msgid "approve_user_notification_subject" 96 96 msgstr "Ваш коментар на ${title} тепер опублікований" … … 100 100 msgid "approvemail_new_comment_link" 101 101 msgstr "Будь-ласка, перегляньте новий коментар, доданий до сторінки ' ${title} ': ${here_url}" 102 103 #. Default: "You can edit a comment by filling out the form below. Plain text formatting." 104 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:38 105 msgid "description_edit_comment" 106 msgstr "Ви можете редагувати коментар, заповнивши форму нижче." 102 107 103 108 #. Default: "Enable Manager moderation" … … 230 235 msgstr "Префікс заголовка електронних листів (назва організації)" 231 236 237 #. Default: "[pending]" 238 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:50 239 msgid "label_pending_state" 240 msgstr "[в очікуванні]" 241 232 242 #. Default: "Report Abuse" 233 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:10 0243 #: ./quintagroup.plonecomments/quintagroup/plonecomments/browser/comments.pt:107 234 244 msgid "label_report_abuse" 235 245 msgstr "Надіслати скаргу" … … 239 249 msgid "label_require_anonym_email" 240 250 msgstr "Вимагати електронну адресу від Анонімного користувача." 251 252 #. Default: "Edit comment" 253 #: ./quintagroup.plonecomments/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:36 254 msgid "legend_edit_comment" 255 msgstr "Редагувати коментар" 241 256 242 257 #. Default: "Email Notification Options" … … 290 305 291 306 #. Default: "[${organization_name}] New comment added" 292 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:17 1307 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:178 293 308 msgid "published_notification_subject" 294 309 msgstr "[${organization_name}] Доданий новий коментар" … … 310 325 311 326 #. Default: "Your comment on ${title} was not approved" 312 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 29327 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:136 313 328 msgid "rejected_user_notification_subject" 314 329 msgstr "Ваш коментар на ${title} відхилений" 315 330 316 331 #. Default: "Someone replied to your comment on ${title}" 317 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:1 45332 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:152 318 333 msgid "reply_user_notification_subject" 319 334 msgstr "Хтось відповів на ваш коментар на ${title}" … … 325 340 326 341 #. Default: "[${organization_name}] A comment on ${title} has been reported for abuse." 327 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:21 1342 #: ./quintagroup.plonecomments/quintagroup/plonecomments/utils.py:218 328 343 msgid "report_abuse_subject" 329 344 msgstr "[${organization_name}] Коментар на ${title} повідомлений як образливий." -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt
r1631 r2087 34 34 <fieldset> 35 35 36 <legend i18n:translate="legend_edit_comment">Edit comment</legend> 37 <p i18n:translate="description_edit_comment"> 36 <legend i18n:domain="quintagroup.plonecomments" 37 i18n:translate="legend_edit_comment">Edit comment</legend> 38 <p i18n:domain="quintagroup.plonecomments" 39 i18n:translate="description_edit_comment"> 38 40 You can edit a comment by filling out the form below. Plain text 39 41 formatting. -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_reply_form.cpt
r1631 r2087 252 252 i18n:attributes="value label_save;" 253 253 tal:attributes="name string:discussion_reply:method;" /> 254 <input class="standalone" 255 type="submit" 256 value="Cancel" 257 name="form.button.Cancel" 258 i18n:attributes="value label_cancel;" /> 254 259 255 260 </div> -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_reply_form.cpt.metadata
r822 r2087 4 4 [validators] 5 5 validators = validate_talkback 6 validators..Cancel= 6 7 7 8 [actions] 8 action.success = traverse_to:string:discussion_reply 9 action.success = redirect_to:string:view 10 action.success..Save = traverse_to:string:discussion_reply 9 11 action.failure = traverse_to:string:discussion_reply_form -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/skins/quintagroup_plonecomments/qcomments.js
r1201 r2087 1 function render_abuse_report_form(comment_id) { 2 jq('form.report_abuse').bind("submit", function(event){ 1 function render_edit_form(comment_id, form_name) { 2 var cholder = jq("#"+comment_id).parent(); 3 var cform = jq("form[name='"+form_name+"']",cholder); 4 var url = jq(cform).attr("action"); 5 var cspan = jq("#span-forms-holder-"+comment_id); 6 cspan.hide().empty() 7 jq(cform).bind("submit", function(event){ 3 8 event.preventDefault(); 4 9 }); 5 var render_button = 'input#input-render-abuse-cancel-' + comment_id; 6 jq(render_button).attr('disabled', 'disabled'); 7 var form = 'span#span-reply-form-' + comment_id; 8 jq(form).slideToggle(500); 9 var holder = 'span#span-reply-form-holder-' + comment_id; 10 var cancel_button = holder + ' input#input-report-abuse-cancel'; 11 var qq = jq(cancel_button); 12 jq(cancel_button).attr('comment_id', comment_id); 10 jq.get(url, 11 function(data){ 12 jq("input", cform).attr("disabled", "disabled"); 13 ddt = jq("form[name='edit_form']", data)[0]; 14 cspan.append(ddt).slideToggle(1000); 15 jq("input[name='form.button.Cancel']",cspan).attr("onclick", "javascript:remove_edit_form("+comment_id+",'"+form_name+"')"); 16 }); 13 17 } 14 18 15 function remove_abuse_report_form(comment_id, html) { 16 jq('form.report_abuse').bind("submit", function(event){ 19 function remove_edit_form(comment_id, form_name) { 20 var cholder = jq("#"+comment_id).parent(); 21 var cform = jq(cholder).find("form[name='"+form_name+"']"); 22 var cspan = jq("#span-forms-holder-"+comment_id); 23 jq("form",cspan).bind("submit", function(event){ 17 24 event.preventDefault(); 18 25 }); 19 var form = 'span#span-reply-form-' + comment_id; 20 jq(form).fadeOut(); 21 var render_button = 'input#input-render-abuse-cancel-' + comment_id; 22 jq(render_button).attr('disabled', ''); 23 if (html != undefined) { 24 var holder = 'span#span-abuse-count-holder-' + comment_id; 25 jq(holder).append(html); 26 } 26 jq("input", cform).attr("disabled", ''); 27 cspan.fadeOut(); 27 28 } 28 29 29 kukit.actionsGlobalRegistry.register("remove_abuse_report_form", function(oper) { 30 var comment_id = oper.parms.comment_id; 31 var html = oper.parms.html 32 remove_abuse_report_form(comment_id, html); 33 }); 34 kukit.commandsGlobalRegistry.registerFromAction('remove_abuse_report_form', kukit.cr.makeSelectorCommand); 30 function render_delete_comment(comment_id) { 31 var cholder = jq("#"+comment_id).parent(); 32 var cform = jq("form[name='delete']",cholder); 33 var url = jq(cform).attr("action"); 34 jq(cform).bind("submit", function(event){ 35 event.preventDefault(); 36 }); 37 jq(cholder).detach() 38 jq.post(url); 39 } 40 41 function render_comment_form() { 42 var cform = jq("form#reply"); 43 var url = jq(cform).attr("action"); 44 jq(cform).bind("submit", function(event){ 45 event.preventDefault(); 46 }); 47 jq.get(url, 48 function(data){ 49 ddt = jq("form[name='edit_form']", data)[0]; 50 jq(cform).replaceWith(ddt); 51 }); 52 } 53 -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/skins/quintagroup_plonecomments/report_abuse_form.cpt
r1631 r2087 21 21 Iterator python:modules['Products.CMFPlone'].IndexIterator; 22 22 tabindex python:Iterator(mainSlot=False); 23 isAnon context/@@plone_portal_state/anonymous ;23 isAnon context/@@plone_portal_state/anonymous|string:False; 24 24 member context/@@plone_portal_state/member; 25 25 thread python:putils.getDiscussionThread(here); … … 80 80 comment_id context/id"> 81 81 <metal:macro define-macro="form" 82 tal:define="isAjaxReportAbuseEnabled view/ajax_report_abuse_enabled|python: portal.portal_properties.qPloneComments.enable_ajax_report_abuse;82 tal:define="isAjaxReportAbuseEnabled view/ajax_report_abuse_enabled|python:here.portal_properties.qPloneComments.enable_ajax_report_abuse; 83 83 visible show_form|request/show_form|nothing; 84 84 portal_url portal_url|view/portal_url; 85 tabindex tabindex|request/tabindex|view/tabindex;86 member member| request/member|view/member;">85 isAnon isAnon|context/@@plone_portal_state/anonymous; 86 member member|context/@@plone_portal_state/member;"> 87 87 88 88 <span tal:define="email_from_address portal/email_from_address|view/email_from_address; … … 198 198 value="Send" 199 199 type="submit" 200 tal:attributes="comment_id comment_id; 201 class python:isAjaxReportAbuseEnabled and 'context input-report-abuse-send' or 'context'" 200 class="context" 201 name="form.button.Send" 202 tal:attributes="comment_id comment_id" 202 203 i18n:attributes="value label_send;" 203 204 /> … … 207 208 class="destructive" 208 209 value="Cancel" 209 type="button" 210 tal:condition="isAjaxReportAbuseEnabled" 211 tal:attributes="onclick string:javascript:remove_abuse_report_form(${comment_id})" 210 type="submit" 211 name="form.button.Cancel" 212 212 i18n:attributes="value label_cancel;" 213 213 /> -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/skins/quintagroup_plonecomments/report_abuse_form.cpt.metadata
r1201 r2087 4 4 [validators] 5 5 validators = validate_report_abuse 6 validators..Cancel= 6 7 7 8 [actions] 8 action.success = traverse_to:string:report_abuse 9 action.success = redirect_to:string:view 10 action.success..Send = traverse_to:string:report_abuse 9 11 action.failure = traverse_to:string:report_abuse_form
Note: See TracChangeset
for help on using the changeset viewer.