From 0478c9340e535169ba8cff1e3bad13e6ec4d0e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Sat, 2 Aug 2014 18:07:40 +0200 Subject: [PATCH] Show only attachments sections in the wiki pages with id --- app/partials/views/modules/attachments.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/partials/views/modules/attachments.jade b/app/partials/views/modules/attachments.jade index 985881be..af3f88e6 100644 --- a/app/partials/views/modules/attachments.jade +++ b/app/partials/views/modules/attachments.jade @@ -1,7 +1,7 @@ //- NOTE: You must to define 'var attachModel' with the object model //- that have attachments -section.attachments(tg-attachments, ng-model=attachModel) +section.attachments(tg-attachments, ng-model=attachModel, ng-if="#{attachModel}.id") div.attachments-header h3.attachments-title span.icon.icon-attachments