[zopeorg-checkins] CVS: Products/ZopeOrg-NV/skins/nzo - nzo_listing_macros.pt:1.1 index_html.pt:1.2

Sidnei da Silva sidnei at x3ng.com.br
Mon Jun 16 17:08:17 EDT 2003


Update of /cvs-zopeorg/Products/ZopeOrg-NV/skins/nzo
In directory cvs.zope.org:/tmp/cvs-serv22184

Modified Files:
	index_html.pt 
Added Files:
	nzo_listing_macros.pt 
Log Message:
Added listing macros from dev.nzo

=== Added File Products/ZopeOrg-NV/skins/nzo/nzo_listing_macros.pt ===
<html>
  <head>
    <title tal:content="template/title">The title</title>
  </head>
  <body>
    <div metal:define-macro="zope_service_provider">
    <table width="95%">
      <tr>
	<td width="60%">
    <img src="logo.jpg"
         tal:condition="here/getLogo"
         tal:attributes="src python:here.getLogo().absolute_url();
                         alt python:here.Company()" />

    <strong tal:condition="not:here/getLogo"
	    tal:content="here/Company/strip|here/getId">Company</strong>

    <p>
      <span tal:condition="here/ExternalURL">
       <a href="#" tal:attributes="href here/ExternalURL">
          Website
      </a>
      -
     </span>
     <a href="#" tal:attributes="href here/absolute_url">
       Company profile
     </a>
   </p>

   </td>
   <td>
      <span tal:condition="here/Location"
            tal:omit-tag="">
      <strong>Location:</strong><br />
      <span tal:replace="here/Location" /><br /><br />
      </span>
      <span tal:condition="here/ServiceInfo"
            tal:omit-tag="">
      <strong>Service Info:</strong><br />
      <span tal:replace="structure here/ServiceInfo" />
      </span>
   </td>
   </tr>
   </table>
    <hr />
   </div>

   <div metal:define-macro="case_study">
    <table width="95%">
      <tr>
	<td width="60%">

    <p tal:condition="here/ExternalURL|nothing">
       <a href="#" tal:attributes="href here/ExternalURL"
	           tal:content="here/ExternalURL">
          Website
      </a>
   </p>

    <span tal:condition="here/Summary|nothing"
	    tal:content="structure here/Summary">Summary</span>

     <a href="#" tal:attributes="href here/absolute_url">
       Read More...
     </a>

	</td>
   </tr>
   </table>
    <hr />
   </div>
</body>
</html>


=== Products/ZopeOrg-NV/skins/nzo/index_html.pt 1.1 => 1.2 ===
 </span>
 <span metal:use-macro="here/local_html/macros/body|default">Locally defined HTML</span>
         <table tal:condition="python: 'local_html' not in here.objectIds()"
-               tal:define="raw_items python: here.contentValues();
-                        sort_items python: raw_items.sort(lambda a, b: cmp(a.getId(), b.getId()) );
-                        items python: here.ZPT_skip_unauthorized( raw_items )">
+               tal:define="items python: here.contentValues();
+                        sort_items python: items.sort(lambda a, b: cmp(a.getId(), b.getId()) )">
             <tr tal:repeat="item items">
                 <td colspan="2"><a href="item_url" 
                     tal:attributes="href item/absolute_url" tal:content="item/title_or_id" class="bTitle">Title</a>





More information about the zopeorg-checkins mailing list