hopefully
This commit is contained in:
@@ -371,25 +371,31 @@ data:
|
||||
url: "http://idokep-scraper.glance-system.svc.cluster.local:8000/api"
|
||||
template: |
|
||||
{{ $loc := .JSON.String "location.name" }}
|
||||
{{ $cur := .JSON "current" }}
|
||||
{{ if eq $loc "" }}{{ $loc = .JSON.String "place" }}{{ end }}
|
||||
|
||||
{{ $curTemp := .JSON.Float "current.temp_c" }}
|
||||
{{ $curIcon := .JSON.String "current.icon_url" }}
|
||||
|
||||
{{ $daily := .JSON.Array "daily" }}
|
||||
{{ $hourly := .JSON.Array "hourly" }}
|
||||
|
||||
<div class="idokep">
|
||||
<div class="idokep-top">
|
||||
<div class="idokep-top-left">
|
||||
{{ $icon := $cur.String "icon_url" }}
|
||||
{{ if $icon }}
|
||||
<img class="idokep-icon" src="{{ $icon }}" alt="" />
|
||||
{{ if $curIcon }}
|
||||
<img class="idokep-icon" src="{{ $curIcon }}" alt="" />
|
||||
{{ end }}
|
||||
<div class="idokep-temp">
|
||||
{{ printf "%.0f" ($cur.Float "temp_c") }}°C
|
||||
{{ printf "%.0f" $curTemp }}°C
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="idokep-top-right">
|
||||
<div class="idokep-loc">{{ $loc }}</div>
|
||||
<div class="idokep-src">Forrás: <a href="{{ .JSON.String "source.url" }}" target="_blank" rel="noreferrer">Időkép</a></div>
|
||||
<div class="idokep-src">
|
||||
Forrás:
|
||||
<a href="{{ .JSON.String "source.url" }}" target="_blank" rel="noreferrer">Időkép</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -450,7 +456,6 @@ data:
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
# Calendar Widget
|
||||
- type: calendar
|
||||
first-day-of-week: monday
|
||||
|
||||
Reference in New Issue
Block a user