From cbe2ff86f1a6873b88e314011ee64b6c25f3359c Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Wed, 5 Feb 2020 22:26:37 -0500 Subject: Extract basics info from strava and display it --- templates/index.hbs | 5 +++++ templates/layout.hbs | 21 +++++++++++++++++++-- templates/profile.hbs | 22 ++++++++++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 templates/profile.hbs (limited to 'templates') 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}}

Message: {{ message }}

Link strava account

+{{#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 @@ - PJ {{ title }} + + + pj- {{ title }} - {{ ~> page }} +
+

{{ title }}

+
+ +
+ {{ ~> page }} +
+ 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}} +

Profile for {{ user }}

+{{/if}} + + + {{#each headings}} + + {{/each}} + + + {{#each entries}} + + {{#each this}} + + {{/each}} + + {{/each}} + +
{{ this }}
{{ this }}
+{{/inline}} +{{~> (parent)~}} -- cgit v1.2.3