diff --git a/glance-system/glance-kisfenyo.yaml b/glance-system/glance-kisfenyo.yaml index 0c8b61e..90b3ad9 100644 --- a/glance-system/glance-kisfenyo.yaml +++ b/glance-system/glance-kisfenyo.yaml @@ -627,71 +627,6 @@ data: url: https://pihole.dooplex.hu/admin icon: si:pihole - - type: custom-api - title: Meal for the Day - cache: 5m - - # Served by glance-helper: stable picks for the day + "cooked" support - url: http://glance-helper.glance-system.svc.cluster.local:8000/tandoor/daily - parameters: - count: 3 - - options: - tandoor_url: https://tandoor.dooplex.hu - - template: | - - - {{ $tandoor := .Options.StringOr "tandoor_url" "https://tandoor.dooplex.hu" }} - {{ $items := .JSON.Array "items" }} - {{ $total := .JSON.Int "total_recipes" }} - {{ $date := .JSON.String "date" }} - -
-
- Today’s picks ({{ $total }} total) - Open Tandoor -
- - {{ if lt (len $items) 1 }} -
No recipes returned.
- {{ else }} -
- {{ range $i, $r := $items }} - {{ $name := $r.String "name" }} - {{ $img := $r.String "image" }} - {{ $url := $r.String "url" }} - {{ $cook := $r.String "cook_url" }} - - - {{ end }} -
- {{ end }} -
- # ---------- CENTER COLUMN ---------- - size: full widgets: @@ -804,6 +739,71 @@ data: # ---------- RIGHT COLUMN ---------- - size: small widgets: + - type: custom-api + title: Meal for the Day + cache: 5m + + # Served by glance-helper: stable picks for the day + "cooked" support + url: http://glance-helper.glance-system.svc.cluster.local:8000/tandoor/daily + parameters: + count: 3 + + options: + tandoor_url: https://tandoor.dooplex.hu + + template: | + + + {{ $tandoor := .Options.StringOr "tandoor_url" "https://tandoor.dooplex.hu" }} + {{ $items := .JSON.Array "items" }} + {{ $total := .JSON.Int "total_recipes" }} + {{ $date := .JSON.String "date" }} + +
+
+ Today’s picks ({{ $total }} total) + Open Tandoor +
+ + {{ if lt (len $items) 1 }} +
No recipes returned.
+ {{ else }} +
+ {{ range $i, $r := $items }} + {{ $name := $r.String "name" }} + {{ $img := $r.String "image" }} + {{ $url := $r.String "url" }} + {{ $cook := $r.String "cook_url" }} + + + {{ end }} +
+ {{ end }} +
+ - type: bookmarks title: Useful Bookmarks groups: