From fe11fa318f61c19b8773bc911b572f0bfdade107 Mon Sep 17 00:00:00 2001
From: Eugen Ciur <eugen@papermerge.com>
Date: Thu, 23 Sep 2021 21:24:01 +0200
Subject: [PATCH] documents and folders

---
 app/components/folder.hbs | 8 ++++++++
 app/router.js             | 1 +
 2 files changed, 9 insertions(+)
 create mode 100644 app/components/folder.hbs

diff --git a/app/components/folder.hbs b/app/components/folder.hbs
new file mode 100644
index 0000000..f603648
--- /dev/null
+++ b/app/components/folder.hbs
@@ -0,0 +1,8 @@
+<div class="node folder">
+    <div class="icon folder"></div>
+    <div class="title">
+        <LinkTo @route="folder" @model={{@folder}}>
+            {{@folder.title}}
+        </LinkTo>
+    </div>
+</div>
\ No newline at end of file
diff --git a/app/router.js b/app/router.js
index 235d116..4150042 100644
--- a/app/router.js
+++ b/app/router.js
@@ -11,4 +11,5 @@ Router.map(function () {
   this.route('about');
   this.route('contact', { path: '/getting-in-touch' });
   this.route('document', { path: '/document/:document_id' });
+  this.route('folder', { path: '/folder/:folder_id' });
 });
-- 
GitLab