From 532c8a5785b95a63f9f1f369f5356180e47b12a0 Mon Sep 17 00:00:00 2001 From: Wilmer Date: Mon, 13 Mar 2017 08:22:00 -0400 Subject: [PATCH] =?UTF-8?q?a=C3=B1adido=20el=20mostrar=20pdf=20en=20el=20r?= =?UTF-8?q?econocimiento=20de=20ascenso?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/cea/reconocimiento_escala_mostrar.html.twig | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/app/Resources/views/cea/reconocimiento_escala_mostrar.html.twig b/app/Resources/views/cea/reconocimiento_escala_mostrar.html.twig index 10f315b..f68204f 100644 --- a/app/Resources/views/cea/reconocimiento_escala_mostrar.html.twig +++ b/app/Resources/views/cea/reconocimiento_escala_mostrar.html.twig @@ -190,11 +190,17 @@ {% for documento in docente.documentosVerificados %} {% if documento.idServicio.id == servicio.id %} {% if not ascenso %} {% set u = "adscripcion" %} {% else %} {% set u = "ascenso" %} {% endif %} -
-
- - - + {% set extension = documento.ubicacion | split('.') | last %} +
+
+ + {% if extension != "pdf" %} + + + + {% else %} + + {% endif %}

{{ documento.idTipoDocumentos.nombre }}

-- 2.0.0