diff --git a/glance-system/glance-orsi.yaml b/glance-system/glance-orsi.yaml index 9b303e1..f7d6ded 100644 --- a/glance-system/glance-orsi.yaml +++ b/glance-system/glance-orsi.yaml @@ -341,81 +341,6 @@ data: # ---------- LEFT COLUMN ---------- - size: small widgets: - - type: custom-api - title: Meal for the Day - cache: 5m - - url: http://glance-helper.glance-system.svc.cluster.local:8000/tandoor/daily - parameters: - count: 3 - cooldown: 14 - - options: - tandoor_url: https://tandoor.dooplex.hu - - template: | - {{ $tandoor := .Options.StringOr "tandoor_url" "https://tandoor.dooplex.hu" }} - {{ $items := .JSON.Array "items" }} - {{ $count := len $items }} - {{ $last := sub $count 1 }} - - - -
-
- Today's picks ({{ $count }} total) - Open Tandoor -
- {{ if lt $count 1 }}
No recipes.
{{ else }} -
- {{ range $i, $_ := $items }}{{ end }} -
- {{ range $r := $items }}{{ $img := $r.String "image" }}{{ $url := $r.String "url" }}{{ $cook := $r.String "cook_url" }}{{ $cooked := $r.Int "cooked_count" }} -
- -
{{ if $img }}{{ else }}
No image
{{ end }}
-
{{ $r.String "name" }}
-
- {{ if gt $cooked 0 }}
Cooked {{ $cooked }}× before
{{ end }} - -
- {{ end }} -
- {{ if gt $count 1 }} - {{ range $i, $_ := $items }}{{ if gt $i 0 }}{{ end }}{{ if lt $i $last }}{{ end }}{{ end }} -
{{ range $i, $_ := $items }}{{ end }}
- {{ end }} -
- {{ end }} -
- # Quick Links - Frequently used - type: bookmarks title: Frequently used @@ -573,11 +498,85 @@ data: {{ end }} # Calendar Widget - - type: calendar - first-day-of-week: monday + # - type: calendar + # first-day-of-week: monday # To-Do List - type: to-do title: Tasks + - type: custom-api + title: Meal for the Day + cache: 5m + + url: http://glance-helper.glance-system.svc.cluster.local:8000/tandoor/daily + parameters: + count: 3 + cooldown: 14 + + options: + tandoor_url: https://tandoor.dooplex.hu + + template: | + {{ $tandoor := .Options.StringOr "tandoor_url" "https://tandoor.dooplex.hu" }} + {{ $items := .JSON.Array "items" }} + {{ $count := len $items }} + {{ $last := sub $count 1 }} + + + +
+
+ Today's picks ({{ $count }} total) + Open Tandoor +
+ {{ if lt $count 1 }}
No recipes.
{{ else }} +
+ {{ range $i, $_ := $items }}{{ end }} +
+ {{ range $r := $items }}{{ $img := $r.String "image" }}{{ $url := $r.String "url" }}{{ $cook := $r.String "cook_url" }}{{ $cooked := $r.Int "cooked_count" }} +
+ +
{{ if $img }}{{ else }}
No image
{{ end }}
+
{{ $r.String "name" }}
+
+ {{ if gt $cooked 0 }}
Cooked {{ $cooked }}× before
{{ end }} + +
+ {{ end }} +
+ {{ if gt $count 1 }} + {{ range $i, $_ := $items }}{{ if gt $i 0 }}{{ end }}{{ if lt $i $last }}{{ end }}{{ end }} +
{{ range $i, $_ := $items }}{{ end }}
+ {{ end }} +
+ {{ end }} +
- type: split-column max-columns: 2