diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2020-02-07 22:12:31 -0500 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2020-02-07 22:12:31 -0500 |
commit | 16c0e847452629c2af9fa1dac7a9d83ae3846c62 (patch) | |
tree | 75f1896b5de502143caa9d88f67b3996a8b364fb /templates | |
parent | 06dbcc08dd75cdcb790e3f41180114cbcddb8bc8 (diff) |
Properly display running entries as a table
Diffstat (limited to 'templates')
-rw-r--r-- | templates/profile.hbs | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/templates/profile.hbs b/templates/profile.hbs index 240c443..c7e75e9 100644 --- a/templates/profile.hbs +++ b/templates/profile.hbs @@ -1,22 +1,24 @@ -{{#*inline "page"}} -{{#if user}} +{{#*inline "page"~}} +{{#if user~}} <p>Profile for {{ user }}</p> -{{/if}} +{{/if~}} +{{#with document ~}} <table> <thead> - {{#each headings}} + {{#each headings ~}} <th>{{ this }}</th> - {{/each}} + {{/each ~}} </thead> <tbody> - {{#each entries}} + {{#each rows ~}} <tr> - {{#each this}} + {{#each this ~}} <td>{{ this }}</td> - {{/each}} + {{/each ~}} </tr> - {{/each}} + {{/each ~}} </tbody> </table> -{{/inline}} +{{/with~}} +{{/inline~}} {{~> (parent)~}} |