From 14e3ac344bd94b5e395c2e7afdb500f7155fdf00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Tue, 29 Jul 2014 00:16:00 +0200 Subject: [PATCH] First iteration over attachments.jade (only list active attachments) --- app/partials/views/modules/attachments.jade | 48 ++++++++++----------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/app/partials/views/modules/attachments.jade b/app/partials/views/modules/attachments.jade index b1982a6d..daa37f09 100644 --- a/app/partials/views/modules/attachments.jade +++ b/app/partials/views/modules/attachments.jade @@ -2,39 +2,35 @@ section.attachments div.attachments-header h3.attachments-title span.icon.icon-attachment - span.attachments-num 5 + span.attachments-num {{ attachmentsCount }} span.attachments-text attachments a.button.button-gray(href="", title="Add new attachment") span +new file - div.attachment-body - - for(var x = 0; x < 3; x++) - div.single-attachment - div.attachment-name - span.icon.icon-document - a(href="", title="Attachment pefildeusuario.png") pefildeusuariopefildeusuariopefildeusuario.png - div.attachment-comment - span Comentario sobre el contenido - span.attachment-size (125kb.) - a.settings.icon.icon-edit(href="","Edit") - a.settings.icon.icon-drag-v(href="","Drag") - div.single-attachment.edit + div.attachment-body + div.single-attachment(ng-repeat="attach in activeAttachments") div.attachment-name span.icon.icon-document - a(href="", title="Attachment pefildeusuario.png") pefildeusuariopefildeusuariopefildeusuario.png - div.editable.editable-attachment-comment - input(type="text") - div.editable.editable-attachment-deprecated - label - input(type="checkbox") - span Deprecated? - div.editable.attachment-delete - a.icon.icon-delete(href="#") + a(href="{{ attach.url }}", title="{{ attach.name }}" target="_blank") {{ attach.name }} div.attachment-comment - span Comentario sobre el contenido - span.attachment-size (125kb.) + span {{ attach.description }} + span.attachment-size ({{ attach.size }} B) a.settings.icon.icon-edit(href="","Edit") a.settings.icon.icon-drag-v(href="","Drag") + + //-div.single-attachment.edit + //- div.attachment-name + //- span.icon.icon-document + //- a(href="", title="Attachment pefildeusuario.png") pefildeusuariopefuario.png + //- div.editable.editable-attachment-comment + //- input(type="text") + //- div.editable.editable-attachment-deprecated + //- label + //- input(type="checkbox") + //- span Deprecated? + //- div.editable.attachment-delete + //- a.icon.icon-delete(href="#") + a.more-attachments(href="", title="show atachments history") - span + show atachments history - span.more-attachments-num (3 more) + span + show deprecated atachments + span.more-attachments-num ({{ deprecatedAttachmentsCount }} more)