From 441438647122d813df8c6dd6455ff7d48eba8670 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Fri, 6 Dec 2019 00:13:59 +0100 Subject: [PATCH] use the rendering function of Task --- client/project.ls | 4 ++-- client/task.ls | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/project.ls b/client/project.ls index b2a0687..60c0542 100644 --- a/client/project.ls +++ b/client/project.ls @@ -24,8 +24,8 @@ Project = (self, todod-ws) -> h \div.column [ bulma.title 4 column.title - tasks-to-display.map (task) -> - h \div [ task.title ] + for task in tasks-to-display + task.render! ] self.render = -> diff --git a/client/task.ls b/client/task.ls index 135e019..014acef 100644 --- a/client/task.ls +++ b/client/task.ls @@ -32,7 +32,7 @@ get-next = (collection, element) -> Task = (self, project, model) -> self.render = -> - h \div [ "coucou" ] + h \div [ self.title ] # self.render-old = -> # author = model.users[self.author]