Madplan: opdater Mealie-links til https://mealie.anneclaus.dk
This commit is contained in:
@@ -18,9 +18,9 @@ cards:
|
||||
[[[
|
||||
var slug = states['sensor.dagens_aftensmad_slug'].state;
|
||||
if (slug && slug !== '' && slug !== 'unknown') {
|
||||
return 'http://anneclaus.dk:9925/g/home/r/' + slug;
|
||||
return 'https://mealie.anneclaus.dk/g/home/r/' + slug;
|
||||
}
|
||||
return 'http://anneclaus.dk:9925';
|
||||
return 'https://mealie.anneclaus.dk';
|
||||
]]]
|
||||
styles:
|
||||
card:
|
||||
@@ -86,7 +86,7 @@ cards:
|
||||
{%- set slug = recipe.slug if recipe else '' -%}
|
||||
{%- set label = 'I dag' if offset == 0 else days[day.weekday()] -%}
|
||||
{%- if slug -%}
|
||||
{%- set ns.rows = ns.rows + "| **" + label + "** | [" + name + "](http://anneclaus.dk:9925/g/home/r/" + slug + ") |\n" -%}
|
||||
{%- set ns.rows = ns.rows + "| **" + label + "** | [" + name + "](https://mealie.anneclaus.dk/g/home/r/" + slug + ") |\n" -%}
|
||||
{%- elif name -%}
|
||||
{%- set ns.rows = ns.rows + "| **" + label + "** | " + name + " |\n" -%}
|
||||
{%- else -%}
|
||||
|
||||
Reference in New Issue
Block a user