]> git.llucax.com Git - z.facultad/75.52/sercom.git/commitdiff
Saco URL de editar
authorRicardo Markiewicz <rmarkie@fi.uba.ar>
Sun, 11 Mar 2007 20:55:36 +0000 (20:55 +0000)
committerRicardo Markiewicz <rmarkie@fi.uba.ar>
Sun, 11 Mar 2007 20:55:36 +0000 (20:55 +0000)
sercom/subcontrollers/enunciado/templates/show.kid

index e53f7188870eb3f420e42eaa2ba67a647e1e2eef..0f186341f2ea598f627e6376f47416836b68fbaa 100644 (file)
@@ -1,4 +1,5 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <!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="'../../../templates/master.kid'">
 <head>
 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
     py:extends="'../../../templates/master.kid'">
 <head>
@@ -24,7 +25,7 @@
 </table>
 
 <br/>
 </table>
 
 <br/>
-<a href="${tg.url('/enunciado/edit/%d' % record.id)}">Editar</a> |
+<a py:if="'admin' in identity.current.permissions" href="${tg.url('/enunciado/edit/%d' % record.id)}">Editar</a> |
 <a href="${tg.url('/enunciado/list')}">Volver</a>
 
 </body>
 <a href="${tg.url('/enunciado/list')}">Volver</a>
 
 </body>