diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2020-02-05 22:26:37 -0500 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2020-02-05 22:26:37 -0500 |
commit | cbe2ff86f1a6873b88e314011ee64b6c25f3359c (patch) | |
tree | 03f20093fd59edccb9dcafd1dbb7d1d65fd96c02 /templates | |
parent | 97b82520aacacbe600c8918b26b5b29b8d47d4d1 (diff) |
Extract basics info from strava and display it
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.hbs | 5 | ||||
-rw-r--r-- | templates/layout.hbs | 21 | ||||
-rw-r--r-- | templates/profile.hbs | 22 |
3 files changed, 46 insertions, 2 deletions
diff --git a/templates/index.hbs b/templates/index.hbs index 238e5e2..66d89ac 100644 --- a/templates/index.hbs +++ b/templates/index.hbs @@ -4,5 +4,10 @@ {{/if}} <p>Message: {{ message }}</p> <p><a href="/link_strava">Link strava account</a></p> +{{#each entries}} + {{#each this }} + (thing {{this}}) + {{/each}} +{{/each}} {{/inline}} {{~> (parent)~}} diff --git a/templates/layout.hbs b/templates/layout.hbs index b8de618..90e5e6f 100644 --- a/templates/layout.hbs +++ b/templates/layout.hbs @@ -1,10 +1,27 @@ <!doctype html> <html lang="en"> <head> - <title>PJ {{ title }}</title> + <meta charset="utf8"> + <link href="/static/default.css" rel="stylesheet" type="text/css"/> + <title>pj- {{ title }}</title> </head> <body> - {{ ~> page }} + <header> + <h1>{{ title }}</h1> + </header> + <nav> + <ul> + <li><a href="">Navigation 1</a></li> + <li><a href="">Navigation 2</a></li> + <li><a href="">Navigation 3</a></li> + </ul> + </nav> + <main> + {{ ~> page }} + </main> + <footer> + <p>Footer goes here</p> + </footer> </body> </html> diff --git a/templates/profile.hbs b/templates/profile.hbs new file mode 100644 index 0000000..240c443 --- /dev/null +++ b/templates/profile.hbs @@ -0,0 +1,22 @@ +{{#*inline "page"}} +{{#if user}} + <p>Profile for {{ user }}</p> +{{/if}} +<table> + <thead> + {{#each headings}} + <th>{{ this }}</th> + {{/each}} + </thead> + <tbody> + {{#each entries}} + <tr> + {{#each this}} + <td>{{ this }}</td> + {{/each}} + </tr> + {{/each}} + </tbody> +</table> +{{/inline}} +{{~> (parent)~}} |