]> git.llucax.com Git - software/sercom.git/blobdiff - sercom/subcontrollers/enunciado/templates/show.kid
Bugfix: typo en variable.
[software/sercom.git] / sercom / subcontrollers / enunciado / templates / show.kid
index e788e673f8c633f886cf45abd0e6b1ae4777b0e3..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">
+<?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>
     </tr>
     <tr>
         <th>Autor:</th>
-       <td><a py:if="record.autorID is not None" href="../../docente/show/${record.autor.id}"><span py:replace="record.autor.shortrepr()">autor</span></a></td>
+       <td><a py:if="record.autorID is not None"
+                       href="${tg.url('/docente/show/%d' % record.autor.id)}"><span py:replace="record.autor.shortrepr()">autor</span></a></td>
     </tr>
 </table>
 
 <br/>
-<a href="../edit/${record.id}">Editar</a> | <a href="../list">Volver</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>
 </html>