Ignore:
Timestamp:
Jul 31, 2009 3:30:02 PM (15 years ago)
Author:
liebster
Message:

Added "report abuse" feature contributed by jcbrand.

Location:
quintagroup.plonecomments/trunk/quintagroup/plonecomments/skins/quintagroup_plonecomments
Files:
8 added
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/skins/quintagroup_plonecomments/prefs_comments_setup_form.cpt

    r822 r1201  
    113113                    <label i18n:translate="label_anonymous_commenting"  
    114114                           for="isEnabledAnonymousCommenting">Allow comments from Anonymous users</label> 
     115                </div> 
     116 
     117                <div class="field" 
     118                     tal:define="property_id string:enable_authenticated_report_abuse; 
     119                                 isEnabledReportAbuse python:props_sheet.getProperty(property_id, False);" 
     120                     tal:condition="python:props_sheet.hasProperty(property_id)"> 
     121 
     122                    <input type="checkbox"  
     123                           class="noborder" 
     124                           name="isEnabledReportAbuse" 
     125                           id="isEnabledReportAbuse" 
     126                           tabindex ="" 
     127                           tal:attributes="name property_id; 
     128                                           value isEnabledReportAbuse; 
     129                                           checked python:test(isEnabledReportAbuse, 'True', ''); 
     130                                           tabindex tabindex/next;"/> 
     131 
     132                    <label i18n:translate="label_enable_report_abuse" 
     133                           for="isEnabledReportAbuse">Enable authenticated users to report abusive comments</label> 
     134                </div> 
     135 
     136                <div class="field" 
     137                     tal:define="property_id string:enable_anonymous_report_abuse; 
     138                                 isEnabledAnonymousReportAbuse python:props_sheet.getProperty(property_id, False);" 
     139                     tal:condition="python:props_sheet.hasProperty(property_id)"> 
     140 
     141                    <input type="checkbox"  
     142                           class="noborder" 
     143                           name="isEnabledAnonymousReportAbuse" 
     144                           id="isEnabledAnonymousReportAbuse" 
     145                           tabindex ="" 
     146                           tal:attributes="name property_id; 
     147                                           value isEnabledAnonymousReportAbuse; 
     148                                           checked python:test(isEnabledAnonymousReportAbuse, 'True', ''); 
     149                                           tabindex tabindex/next;"/> 
     150 
     151                    <label i18n:translate="label_enable_anonymous_report_abuse" 
     152                           for="isEnabledAnonymousReportAbuse">Enable anonymous users to report abusive comments</label> 
     153 
     154                    <div class="formHelp" id="anonymous_report_abuse_help" 
     155                         i18n:translate="help_enable_anonymous_report_abuse"> 
     156                        This setting will allow ALL users, including non logged in users to report abusive comments. 
     157                    </div> 
     158                </div> 
     159 
     160                <div class="field" 
     161                     tal:define="property_id string:enable_ajax_report_abuse; 
     162                                 isEnabledAjaxReportAbuse python:props_sheet.getProperty(property_id, False);" 
     163                     tal:condition="python:props_sheet.hasProperty(property_id)"> 
     164 
     165                    <input type="checkbox"  
     166                           class="noborder" 
     167                           name="isEnabledAjaxReportAbuse" 
     168                           id="isEnabledAjaxReportAbuse" 
     169                           tabindex ="" 
     170                           tal:attributes="name property_id; 
     171                                           value isEnabledAjaxReportAbuse; 
     172                                           checked python:test(isEnabledAjaxReportAbuse, 'True', ''); 
     173                                           tabindex tabindex/next;"/> 
     174 
     175                    <label i18n:translate="label_enable_ajax_report_abuse" 
     176                           for="isEnabledAjaxReportAbuse">Enable AJAX powered abuse reports</label> 
     177 
     178                    <div class="formHelp" id="ajax_report_abuse_help" 
     179                         i18n:translate="help_enable_ajax_report_abuse"> 
     180                        This setting will only take effect if abuse reports are enabled. 
     181                    </div> 
    115182                </div> 
    116183 
Note: See TracChangeset for help on using the changeset viewer.