- <td><a py:if="record.autorID is not None"
- href="${tg.url('/docente/show/%d' % record.autor.id)}"><span
- py:replace="tg.summarize(record.autor.shortrepr(), 30)">autor</span></a></td>
- <td><a py:if="len(record.casos_de_prueba)"
- href="${tg.url('/caso_de_prueba/list', enunciado=record.id)}"><span
- py:replace="len(record.casos_de_prueba)">cant</span></a></td>
+ <td py:if="'admin' in identity.current.permissions">
+ <a py:if="'admin' in identity.current.permissions and record.autorID is not None"
+ href="${tg.url('/docente/show/%d' % record.autor.id)}" py:content="tg.summarize(record.autor.shortrepr(), 30)">autor</a>
+ <span py:if="'admin' not in identity.current.permissions and record.autorID is not None"
+ py:replace="tg.summarize(record.autor.shortrepr(), 30)">autor</span>
+ </td>
+ <td align="center" py:if="'admin' in identity.current.permissions">
+ <a if="len(record.tareas)" href="${tg.url('/enunciado/show/%d' % record.id)}"><span
+ py:replace="len(record.tareas)">cant</span></a></td>
+ <td align="center" py:if="'admin' in identity.current.permissions"><span py:content="len(record.casos_de_prueba)" /></td>