]> git.llucax.com Git - software/sercom.git/commitdiff
Voy preparando el dashborard.
authorRicardo Markiewicz <rmarkie@fi.uba.ar>
Thu, 1 Mar 2007 16:38:20 +0000 (16:38 +0000)
committerRicardo Markiewicz <rmarkie@fi.uba.ar>
Thu, 1 Mar 2007 16:38:20 +0000 (16:38 +0000)
Los include, headers y cosas locas de kid no quieren andar, lo hago a la old way :)

sercom/templates/welcome.kid

index d23eb9f2acb32b10949d9882ec6022df76a84713..9a86f7c9d6121b99d43de6e111899dead0bd310e 100644 (file)
@@ -1,48 +1,20 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<?python from turbogears import identity ?>
+
 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
-    py:extends="'master.kid'">
+       py:extends="'master.kid'">
 <head>
-<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
 <title>Welcome to TurboGears</title>
 </head>
 <body>
+       <div py:if="'admin' in identity.current.permissions">
+               <h1>Soy admin</h1>
+       </div>
+
 
-  <div id="status_block">Your application is now running</div>
-  <div id="sidebar">
-    <h2>Learn more</h2>
-    Learn more about TurboGears and take part in its
-    development
-    <ul class="links">
-      <li><a href="http://www.turbogears.org">Official website</a></li>
-      <li><a href="http://docs.turbogears.org">Documentation</a></li>
-      <li><a href="http://trac.turbogears.org/turbogears/">Trac
-        (bugs/suggestions)</a></li>
-      <li><a href="http://groups.google.com/group/turbogears"> Mailing list</a> </li>
-    </ul>
-    <span py:replace="now">now</span>
-  </div>
-  <div id="getting_started">
-    <ol id="getting_started_steps">
-      <li class="getting_started">
-        <h3>Model</h3>
-        <p> <a href="http://docs.turbogears.org/1.0/GettingStarted/DefineDatabase">Design models</a> in the <span class="code">model.py</span>.<br/>
-          Edit <span class="code">dev.cfg</span> to <a href="http://docs.turbogears.org/1.0/GettingStarted/UseDatabase">use a different backend</a>, or start with a pre-configured SQLite database. <br/>
-          Use script <span class="code">tg-admin sql create</span> to create the database tables.</p>
-      </li>
-      <li class="getting_started">
-        <h3>View</h3>
-        <p> Edit <a href="http://docs.turbogears.org/1.0/GettingStarted/Kid">html-like templates</a> in the <span class="code">/templates</span> folder;<br/>
-        Put all <a href="http://docs.turbogears.org/1.0/StaticFiles">static contents</a> in the <span class="code">/static</span> folder. </p>
-      </li>
-      <li class="getting_started">
-        <h3>Controller</h3>
-        <p> Edit <span class="code"> controllers.py</span> and <a href="http://docs.turbogears.org/1.0/GettingStarted/CherryPy">build your
-          website structure</a> with the simplicity of Python objects. <br/>
-          TurboGears will automatically reload itself when you modify your project. </p>
-      </li>
-    </ol>
-    <div class="notice"> If you create something cool, please <a href="http://groups.google.com/group/turbogears">let people know</a>, and consider contributing something back to the <a href="http://groups.google.com/group/turbogears">community</a>.</div>
-  </div>
-  <!-- End of getting_started -->
+       <div py:if="'entregar' in identity.current.permissions and 'admin' not in identity.current.permissions">
+               <h1>Soy entregar</h1>
+       </div>
 </body>
 </html>