[zopeorg-checkins] CVS: Products/ZopeOrg-NV/skins/nzo - main_template.html:1.8

Sidnei da Silva sidnei at x3ng.com.br
Fri Jun 7 12:04:18 EDT 2002


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

Modified Files:
	main_template.html 
Log Message:
Ooops. Sorry, broken zpt again. Damn cadaver.

=== Products/ZopeOrg-NV/skins/nzo/main_template.html 1.7 => 1.8 ===
+<html metal:define-macro="master"
+      tal:define="utool nocall:here/portal_url;
+                  mtool here/portal_membership;
+                  atool here/portal_actions;
+                  wtool here/portal_workflow;
+                  portal_object utool/getPortalObject;
+                  portal_title portal_object/Title;
+                  object_title here/Title;
+                  portal_url here/portal_url;
+                  member mtool/getAuthenticatedMember;
+                  isAnon mtool/isAnonymousUser;
+                  actions python: atool.listFilteredActionsFor( here );
+                  user_actions actions/user;
+  		  uname python: isAnon and 'Guest' or member.getUserName();
+    object_actions actions/object;
+    folder_actions actions/folder;
+    workflow_actions actions/workflow;
+                 ">
 <head>
 
-  <title>: </title>
+  <title tal:define="ob_title here/Title; portal_title container/title"
+         tal:content="string:${portal_title}: ${ob_title}">New Zope.org</title>
 
-  <link href="http://localhost:8080/ZopeOrg/portal_skins/custom/css_default"
-        rel="stylesheet" type="text/css" />
+  <link href="css_default.css" rel="stylesheet" type="text/css"
+        tal:attributes="href here/css_default/absolute_url" />
 
-  <link href="http://localhost:8080/ZopeOrg/sitefonts"
-        rel="stylesheet" type="text/css" />
-  <style type="text/css" media="all">http://localhost:8080/ZopeOrg/sitefonts</style>
+  <link href="sitefonts.css" rel="stylesheet" type="text/css"
+        tal:attributes="href here/sitefonts/absolute_url" />
+  <style type="text/css" media="all"
+         tal:content="here/sitefonts/absolute_url">
+ at import "sitefonts.css";
+  </style>
 
 </head>
 
@@ -19,16 +40,19 @@
     <tr>
       <td width="201" valign="top">
       <div align="left">
- <a href="http://localhost:8080/ZopeOrg"><img src="top_logo.gif" width="201" height="54" border="0" /></a></div></td>
+ <a href="#" tal:attributes="href portal_url"><img src="top_logo.gif"
+           width="201" height="54" border="0" /></a></div></td>
 
-      <form action="http://localhost:8080/ZopeOrg/search"
-            method="get">
-      <td background="top_bckgrd.jpg"> <a
-    href="http://localhost:8080/ZopeOrg">Home</a> |
-         <a href="http://localhost:8080/ZopeOrg/sitemap.html">Site map</a> |
-         <a href="http://localhost:8080/ZopeOrg/help.html">Help</a> |
-         <a href="http://localhost:8080/ZopeOrg/search_form">Search</a>
-        <input type="text" name="SearchableText" value="Type your search here" size="20" onfocus="this.value='';" />
+      <form action="search" method="get"
+            tal:define="portal_url here/portal_url"
+     tal:attributes="action string:${portal_url}/search">
+      <td background="top_bckgrd.jpg"> <a href="#"
+         tal:attributes="href portal_url">Home</a> |
+         <a href="#" tal:attributes="href string:${portal_url}/sitemap.html">Site map</a> |
+         <a href="#" tal:attributes="href string:${portal_url}/help.html">Help</a> |
+         <a href="#" tal:attributes="href string:${portal_url}/search_form">Search</a>
+        <input type="text" name="SearchableText" value="Type your search here"
+        size="20" onfocus="this.value='';" />
         <input type="submit" name="Submit" value="Go" /> &nbsp;
       </td>
       </form>
@@ -42,17 +66,12 @@
     <td bgcolor="#CCCCCC">
 
       <div id="USER_BAR">
-           Username:&nbsp;&nbsp;<span>sidnei</span>&nbsp;&nbsp;
-        <span>
-        <a href=" http://localhost:8080/ZopeOrg/portal_skins/custom/setStartPage">Set Start Page</a><span>&nbsp;|&nbsp;</span>
+           Username:&nbsp;&nbsp;<span tal:content="uname">Guest</span>&nbsp;&nbsp;
+        <span tal:repeat="action user_actions">
+        <a href="" tal:attributes="href action/url"
+           tal:content="action/name">Login</a><span tal:condition="not: repeat/action/end">&nbsp;|&nbsp;</span>
         </span>
-        <span>
-        <a href=" http://localhost:8080/ZopeOrg/personalize_form">Preferences</a><span>&nbsp;|&nbsp;</span>
-        </span>
-        <span>
-        <a href=" http://localhost:8080/ZopeOrg/logout">Log out</a>
-        </span>
-        &nbsp;
+        <span tal:condition="nothing"><a href="join_form">Join</a></span>&nbsp;
       </div>
 
     </td>
@@ -133,42 +152,21 @@
 
     <td background="point_bckgrd2.jpg" width="1">&nbsp;</td>
     <td valign="top">
-      <div id="Breadcrumbs">
+      <div id="Breadcrumbs" tal:condition="python: not here.getId() == utool.getPortalObject().getId()">
         Location: 
-          <a href='http://localhost:8080/ZopeOrg' class='link1' title='Home'>Home</a>&nbsp;&gt;&nbsp;<a href='http://localhost:8080/ZopeOrg/portal_skins' class='link1' title='portal_skins'>portal_skins</a>&nbsp;&gt;&nbsp;<a href='http://localhost:8080/ZopeOrg/portal_skins/custom' class='link1' title='custom'>custom</a>
+          <span tal:replace="structure python:here.shortBread(include_root=1)">
+			    <a href="#">Bread</a> > <a href="#">Crumbs</a></span>
       </div>
-      <span id="ACTIONS_BAR">
-  <div id="BYLINE_TITLE"><img src="ZopeOrg/folder_icon.gif"
-    alt="Folder">&nbsp;</div>
-
-    <div>
-    By <a>admin</a>
-        (updated 2002-06-07 06:36:15 )
-    </div>
-
-    <div id="objectactions">
-
-
-      
-
-      <div><a href=" http://localhost:8080/ZopeOrg/portal_skins/custom/folder_contents">Folder contents</a>&nbsp;|&nbsp;<a
-    href=" http://localhost:8080/ZopeOrg/portal_skins/custom/synPropertiesForm">Syndication</a>&nbsp;|&nbsp;<a
-    href="http://localhost:8080/ZopeOrg/portal_skins/custom">View</a>&nbsp;|&nbsp;<a
-    href="http://localhost:8080/ZopeOrg/portal_skins/custom/folder_edit_form">Edit</a>&nbsp;|&nbsp;<a
-    href="http://localhost:8080/ZopeOrg/portal_skins/custom/folder_localrole_form">Local Roles</a></div>
+      <div metal:use-macro="container/macros_repository/macros/byline">Byline</div>
 
-      
-    </div>
-</span>
+      <div metal:define-slot="main">
 
-      <div>
 
-
-<table width="100%" border="0" cellspacing="0" cellpadding="0">
-  <tbody>
-  <tr>
-    <td id="contentarea" valign="top">
-      <h1>Spotlight on...<br /></h1>
+<TABLE width="100%" border=0 cellspacing="0" cellpadding="0">
+  <TBODY>
+  <TR>
+    <TD  id="contentarea" valign="top">
+      <H1>Spotlight on...<br /></H1>
 
       <h2>Using Zope With Amaya<br />
       <span style="font-size: small">By Michel Pelletier 21 August, 2001</span></h2>
@@ -177,9 +175,10 @@
       you to add and manipulate Zope objects. Zope's managment
       interface is one of its most powerful features, but there
       is one area where using Zope's managment interface is
-      difficult: editing templates.  <img src="more.gif" width="115" height="33" align="absbottom" /></p>
+      difficult: editing templates.  <img src="more.gif"
+      width="115" height="33" align="absbottom" /></p>
 
-      <h1>What is Zope?</h1>
+      <H1>What is Zope?</H1>
 
       <p>Zope is an open source application server for building
       content management solutions such as publishing sites,
@@ -208,7 +207,8 @@
      <a href="">Security</a>, 
      <a href="">Backup policies</a>, 
      <a href="#">DTML </a>
-     <a href=""><img src="more.gif" width="115" height="33" align="absbottom" border="0" /></a>
+     <a href=""><img src="more.gif" width="115" height="33" 
+     align="absbottom" border="0" /></a>
         </div>
       </div>
 
@@ -218,7 +218,8 @@
         <div class="subitems"><a href="">Developers Guide</a>, 
      <a href="#">ZClasses</a>,
      <a href="">Unit testing</a> 
-     <a href="#"><img src="more.gif" width="115" height="33" align="absbottom" border="0" /></a>
+     <a href="#"><img src="more.gif" width="115" height="33" 
+     align="absbottom" border="0" /></a>
         </div>
       </div>
 
@@ -228,17 +229,18 @@
         <div class="subitems"><a href="">Products</a>, 
      <a href="">Using CVS</a>,
      <a href="">Bug days</a> 
-     <a href="#"><img src="more.gif" width="115" height="33" align="absbottom" border="0" /></a>
+     <a href="#"><img src="more.gif" width="115" height="33"
+     align="absbottom" border="0" /></a>
         </div>
       </div>
 
-    </td>
+    </TD>
 
-    <td valign="top"><img src="space.gif" width="7" height="32" alt="" /></td>
-    <td background="point_bckgrd2.jpg"><img src="space.gif" width="24" height="32" alt="" /></td>
-    <td id="NEWS_MENU" valign="top" width="200"> 
+    <TD valign="top"><img src="space.gif" width="7" height="32" alt="" /></TD>
+    <TD background="point_bckgrd2.jpg"><img src="space.gif" width="24" height="32" alt="" /></TD>
+    <TD id="NEWS_MENU" vAlign=top width=200> 
 
-        <h1>Announcements</h1>
+        <H1>Announcements</H1>
 
         <p>14 March - <a href="#">O'Reilly Call For Papers
         Deadline</a></p>
@@ -249,9 +251,10 @@
         <p>13 March - <a href="#">Lennart is Learning
         dreamweaver, Olivier prefers plain old ZMI</a></p>
   
-        <p style="text-align: center"><img style="text-align: center" src="more.gif" width="115" height="33" align="absbottom" /></p>
+        <p style="text-align: center"><img style="text-align: center"
+           src="more.gif" width="115" height="33" align="absbottom" /></p>
  
-        <h1>News</h1>
+        <H1>News</H1>
 
         <p>13 Apr - <a href="#">ZPT introduction</a></p>
 
@@ -259,7 +262,8 @@
 
         <p>13 Apr - <a href="#">Zope on Slashdot</a></p>
 
-        <p style="text-align: center"><img style="text-align: center" src="more.gif" width="115" height="33" align="absbottom" /></p>
+        <p style="text-align: center"><img style="text-align: center"
+           src="more.gif" width="115" height="33" align="absbottom" /></p>
  
         <h1>Top Resources</h1>
 
@@ -275,12 +279,13 @@
 	<p> - <a href="#">ZExternal News 1.0.2</a> (odeckmyn)</p>
         </div>
 
-        <p style="text-align: center"><img style="text-align: center" src="more.gif" width="115" height="33" align="absbottom" /></p>
+        <p style="text-align: center"><img style="text-align: center"
+           src="more.gif" width="115" height="33" align="absbottom" /></p>
  
-    </td>
-  </tr>
-  </tbody>
-</table>
+    </TD>
+  </TR>
+  </TBODY>
+</TABLE>
 
       </div>
     </td>
@@ -296,84 +301,13 @@
 </tr>
 </table>
 
-<table align="center" border="1" id="BUGBOX" cellspacing="0"
-       cellpadding="2">
-<caption>Temporary Area -- The Bug Box</caption>
-  <tr>
-  <td>
-  <table align="center" border="0" cellspacing="0" cellpadding="4">
-  <tr>
-    
-    <td>
-      <form name="fCollector" action="http://collector.zope.org/ZopeOrg/collector_add_issue" method="POST">
-	<table cellspacing="0" colspacing="0" border="0">
-	<tr>
-	<td align="right">
-	      <strong>Category:</strong>
-	</td>
-	<td>
-		<select name="topic">
-	        <option value="content">content</option>
-		<option value="skin">skin</option>
-		<option value="functionality">functionality</option>
-		<option value="navigation">navigation</option>
-		<option value="migration machinery">migration machinery</option>
-		<option value="SoftwareProduct">SoftwareProduct</option>
-		</select>
-	</td>
-	<td rowspan="3">
-	      	<strong>Description:</strong><br />
-		<textarea name="description" rows="5" cols="30"></textarea>
-	</td>
-	</tr>
-	<tr>
-	<td align="right">
-		<strong>Title:</strong> 
-	</td>
-	<td>
-		<input type="text" name="title" value="" size="20" />
-	</td>
-	</tr>
-	<tr>
-	<td align="right">
-	      	<strong>Email:</strong> 
-	</td>
-	<td>
-		<input type="text" name="submitter_email" size="20" value="paul at zope.com" />
-	</td>
-	</tr>
-	<tr>
-	<td align="right">
-	     	<input type="button" value="Add" />
-	</td>
-	<td colspan="2">	
-	      	<input type="button" value="Add and Confirm" onclick="addCollectorIssue();" />
-	</td>
-	</tr>
-	</table>
-      </form>
-    </td>
-  </tr>
-  </table>
- </td>
- </tr>
-  <tr>
-    <td align="center">
-      <a href="#">Collector Login</a> &nbsp;
-View open reports for:
-<a href="#">All</a>
-<a href="#">Design</a>
-<a href="#">System</a>
-<a href="#">Search</a>
-<a href="#">Content</a>
-<a href="#">Documentation</a>
-<a href="#">Products</a>
-</td>
-</tr>
-</table>
+<div align="center" metal:use-macro="container/macros_repository/macros/bugbox">
+Here goes the Bug Box
+</div>
 
-<div id="FOOTER" align="center"><br />&copy; 2002
-<a href="http://www.zope.com/">Zope Corporation</a> All rights reserved.<br /></div>
+<div align="center" metal:use-macro="container/macros_repository/macros/copyright">
+  Here goes the Copyright
+</div>
 
 </body>
-</html>
+</html>
\ No newline at end of file






More information about the zopeorg-checkins mailing list