[quills-dev] [Collective-checkins] r32144 - Quills/trunk/skins/Quills
quills-dev at lists.etria.com quills-dev at lists.etria.comSun Oct 22 22:27:34 UTC 2006
- Previous message: [quills-dev] trackback spam
- Next message: [quills-dev] [Collective-checkins] r32145 - Quills/trunk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: tomster Date: Sun Oct 22 22:27:33 2006 New Revision: 32144 Modified: Quills/trunk/skins/Quills/manage_comments.cpt Log: whitespace and indentation cleanup prior to future edits. Modified: Quills/trunk/skins/Quills/manage_comments.cpt ============================================================================== --- Quills/trunk/skins/Quills/manage_comments.cpt (original) +++ Quills/trunk/skins/Quills/manage_comments.cpt Sun Oct 22 22:27:33 2006 @@ -1,141 +1,134 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" - lang="en" - i18n:domain="plone" - metal:use-macro="here/main_template/macros/master"> - <head> - <metal:block fill-slot="top_slot"> - <tal:insert tal:replace="nothing" - tal:define="dummy python:request.set('enable_border', 1)" /> - </metal:block> - </head> - <body> - - <div metal:fill-slot="main"> - <metal:contentsmacro - define-macro="contents" - tal:define="author python:here.REQUEST.get('form.field.author'); - text python:here.REQUEST.get('form.field.text'); - subject python:here.REQUEST.get('form.field.subject'); - comments python: here.getComments(weblog=here, author=author, text=text, subject=subject); - num_comments python: len(comments); - hasComments python: num_comments > 0; - "> - <div metal:use-macro="here/document_actions/macros/document_actions"> - Document actions (print, sendto etc) - </div> - <h1 i18n:translate="manage_comments"> - Manage Comments - </h1> + lang="en" + i18n:domain="plone" + metal:use-macro="here/main_template/macros/master"> + + <head> + <metal:block fill-slot="top_slot"> + <tal:insert tal:replace="nothing" + tal:define="dummy python:request.set('enable_border', 1)" /> + </metal:block> + </head> + <body> + <div metal:fill-slot="main"> + <metal:contentsmacro + define-macro="contents" + tal:define=" + author python:here.REQUEST.get('form.field.author'); + text python:here.REQUEST.get('form.field.text'); + subject python:here.REQUEST.get('form.field.subject'); + comments python: here.getComments(weblog=here, author=author, text=text, subject=subject); + num_comments python: len(comments); + hasComments python: num_comments > 0; + "> + <div metal:use-macro="here/document_actions/macros/document_actions"> + Document actions (print, sendto etc) + </div> + <h1 i18n:translate="manage_comments"> + Manage Comments + </h1> - <p class="discreet" - i18n:translate="no_comments" - tal:condition="python: not(hasComments)"> - There are no comments for Weblog entries. - </p> - - <metal:listing> - <div class="visualClear" /> - <form name="commentsForm" - method="post" - tal:define="errors options/state/getErrors" - tal:attributes="action template/id"> - Author: <input type='text' name='form.field.author' size='10' tal:attributes='value author'/> - Subject: <input type='text' name='form.field.subject' size='20' tal:attributes='value subject'/> - Text: <input type='text' name='form.field.text' size='20' tal:attributes='value text'/> - <input class="context" - tabindex="" - type="submit" - name="form.button.Update" - value="Update" - i18n:attributes="value" /> - - <input class="context" - tabindex="" - type="submit" - name="form.button.Delete" - value="Delete" - i18n:attributes="value" /> - <input type="hidden" name="form.submitted" value="1" /> - <div i18n:translate="comment_deletion_warning" - class="portalMessage"> - Warning: comment deletion <em>cannot be undone</em>! - </div> - - <table - class="listing" - summary="Comments listing" - tal:condition="hasComments"> - <thead> - <metal:block> - <tr> - <th class="nosort"> - <input class="noborder" - type="checkbox" - src="select_all_icon.gif" - name="selectButton" - title="Select all items" - onClick="toggleSelect(this,'selected_comments:list');" - tal:attributes="src string:$portal_url/select_all_icon.gif" - alt="Select all items" - i18n:attributes="title label_select_all_items; alt label_select_all_items;" - /> - </th> - <th class="nosort"> Date </th> - <th class="nosort"> Author </th> - <th class="nosort"> Subject </th> - <th class="nosort"> Text </th> - </tr> - </metal:block> - </thead> - - <metal:block> - <tbody> - <tal:items tal:repeat="comment comments"> - <tr tal:define="comment_id python:comment.id; - comment_uid python:comment.UID(); - comment_id_UID string:${comment_id}:${comment_uid}; - comment_title_or_id python:comment.title_or_id(); - comment_author python:comment.Creator()[:25]; - comment_subject python:comment.Title()[:30]; - comment_text python:comment.text[:100] + '...'; - comment_modified python:comment.modified();oddrow repeat/comment/odd;" - tal:attributes="class python:test(oddrow, 'even', 'odd')" > - - <td> - <input type="checkbox" - class="noborder" - name="selected_comments:list" id="#" - value="#" - tal:attributes="value comment_id_UID; - id string:cb_$comment_id; - checked python:test(request.get('ids_checked', False), 'checked', None); - alt string:Select $comment_title_or_id; - title string:Select $comment_title_or_id" /> - - </td> - - <td tal:content="python:here.toLocalizedTime(comment_modified, long_format=1)"> - 08/19/2001 03:01 AM - </td> - <td tal:content="comment_author"></td> - <td tal:content="comment_subject"></td> - <td tal:content="comment_text"></td> - - </tr> - </tal:items> - </tbody> - </metal:block> - </table> - - </form> - </metal:listing> - - </metal:contentsmacro> - - - </div> - - - </body> + <p class="discreet" + i18n:translate="no_comments" + tal:condition="python: not(hasComments)"> + There are no comments for Weblog entries. + </p> + + <metal:listing> + <div class="visualClear" /> + <form name="commentsForm" + method="post" + tal:define="errors options/state/getErrors" + tal:attributes="action template/id"> + Author: <input type='text' name='form.field.author' size='10' tal:attributes='value author'/> + Subject: <input type='text' name='form.field.subject' size='20' tal:attributes='value subject'/> + Text: <input type='text' name='form.field.text' size='20' tal:attributes='value text'/> + <input class="context" + tabindex="" + type="submit" + name="form.button.Update" + value="Update" + i18n:attributes="value" /> + + <input class="context" + tabindex="" + type="submit" + name="form.button.Delete" + value="Delete" + i18n:attributes="value" /> + <input type="hidden" name="form.submitted" value="1" /> + <div i18n:translate="comment_deletion_warning" + class="portalMessage"> + Warning: comment deletion <em>cannot be undone</em>! + </div> + + <table + class="listing" + summary="Comments listing" + tal:condition="hasComments"> + <thead> + <tr> + <th class="nosort"> + <input class="noborder" + type="checkbox" + src="select_all_icon.gif" + name="selectButton" + title="Select all items" + onClick="toggleSelect(this,'selected_comments:list');" + tal:attributes="src string:$portal_url/select_all_icon.gif" + alt="Select all items" + i18n:attributes="title label_select_all_items; alt label_select_all_items;" + /> + </th> + <th class="nosort"> Date </th> + <th class="nosort"> Author </th> + <th class="nosort"> Subject </th> + <th class="nosort"> Text </th> + </tr> + </thead> + + <tbody> + <tal:items tal:repeat="comment comments"> + <tr tal:define=" + comment_id python:comment.id; + comment_uid python:comment.UID(); + comment_id_UID string:${comment_id}:${comment_uid}; + comment_title_or_id python:comment.title_or_id(); + comment_author python:comment.Creator()[:25]; + comment_subject python:comment.Title()[:30]; + comment_text python:comment.text[:100] + '...'; + comment_modified python:comment.modified();oddrow repeat/comment/odd;" + tal:attributes="class python:test(oddrow, 'even', 'odd')" > + + <td> + <input type="checkbox" + class="noborder" + name="selected_comments:list" id="#" + value="#" + tal:attributes=" + value comment_id_UID; + id string:cb_$comment_id; + checked python:test(request.get('ids_checked', False), 'checked', None); + alt string:Select $comment_title_or_id; + title string:Select $comment_title_or_id" /> + + </td> + + <td tal:content="python:here.toLocalizedTime(comment_modified, long_format=1)"> + 08/19/2001 03:01 AM + </td> + <td tal:content="comment_author"></td> + <td tal:content="comment_subject"></td> + <td tal:content="comment_text"></td> + + </tr> + </tal:items> + </tbody> + </table> + </form> + </metal:listing> + </metal:contentsmacro> + </div> + </body> </html> ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Collective-checkins mailing list Collective-checkins at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/collective-checkins
- Previous message: [quills-dev] trackback spam
- Next message: [quills-dev] [Collective-checkins] r32145 - Quills/trunk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the quills-dev mailing list