- <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/%d' % record.id)}"><span
+ <td>
+ <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 py:if="'admin' in identity.current.permissions"><a py:if="len(record.tareas)"
+ href="${tg.url('/enunciado/tarea/list/%d' % record.id)}"><span
+ py:replace="len(record.tareas)">cant</span></a></td>
+ <td py:if="'admin' in identity.current.permissions"><a py:if="len(record.casos_de_prueba)"
+ href="${tg.url('/caso_de_prueba/list', enunciado=record.id)}"><span