diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-08-01 13:45:13 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-08-01 13:49:03 +0200 |
commit | 616b56937db92c48c5c157367a123d9ce56902b2 (patch) | |
tree | 406a766df286efdc778cf73518e3aa46484ff5b7 /templates | |
parent | 1b359d5f6fa63352c79462d5eeab40d4e2f10d89 (diff) |
Add template for tree
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/tree.template | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/tree.template b/templates/tree.template new file mode 100644 index 0000000..4d5281a --- /dev/null +++ b/templates/tree.template @@ -0,0 +1,23 @@ +{{#*inline "page"}} + {{> partial-sidebar}} + + <p>The repo goes here, with branch {{this.data.branch_name}}</p> + + <div id="content"> + <ul> + {{#each this.data.content}} + <li> + {{#if this.is_dir}} + Directory + {{else}} + File + {{/if}} + + {{this.name}} + </li> + {{/each}} + </ul> + </div> +{{/inline}} +{{> (lookup this "parent")}} + |