]> git.llucax.com Git - software/sercom.git/blobdiff - sercom/subcontrollers/enunciado/templates/show.kid
saco el autor de la lista si es alumno.
[software/sercom.git] / sercom / subcontrollers / enunciado / templates / show.kid
index 5e7df77102531fbdd92639fd7e69e9bbec0fe594..deb2b07846955b6108559a70d8248ec5976afe51 100644 (file)
         <th>Descripción:</th>
                                <td><span py:replace="record.descripcion">descripcion</span></td>
     </tr>
         <th>Descripción:</th>
                                <td><span py:replace="record.descripcion">descripcion</span></td>
     </tr>
-    <tr>
+    <tr py:if="'admin' in identity.current.permissions">
         <th>Autor:</th>
         <th>Autor:</th>
-                               <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>
+                               <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>
     </tr>
-    <tr>
+    <tr py:if="'admin' in identity.current.permissions">
         <th>Creado el:</th>
                                <td><span py:replace="record.creado">descripcion</span></td>
     </tr>
         <th>Creado el:</th>
                                <td><span py:replace="record.creado">descripcion</span></td>
     </tr>
@@ -52,7 +52,7 @@
         <th>Casos de Prueba:</th>
                                <td>
                                        <ul>
         <th>Casos de Prueba:</th>
                                <td>
                                        <ul>
-                                               <li py:for="t in record.casos_de_prueba" py:content="t.shortrepr()" />
+                                               <li py:for="t in record.casos_de_prueba" py:if="t.publico or 'admin' in identity.current.permissions" py:content="t.shortrepr()" />
                                        </ul>
                                </td>
     </tr>
                                        </ul>
                                </td>
     </tr>