diff --git a/Models/Constants.ts b/Models/Constants.ts index a8d6f58a4a..4cbec29302 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -2,7 +2,7 @@ import { Utils } from "../Utils"; export default class Constants { - public static vNumber = "0.8.1"; + public static vNumber = "0.8.2"; // The user journey states thresholds when a new feature gets unlocked public static userJourney = { diff --git a/assets/themes/fritures/Vegetarian-mark.svg b/assets/themes/fritures/Vegetarian-mark.svg new file mode 100644 index 0000000000..e88ac71e67 --- /dev/null +++ b/assets/themes/fritures/Vegetarian-mark.svg @@ -0,0 +1,31 @@ + + + Vegetarian mark + + + + image/svg+xml + + Vegetarian mark + + + + + + + diff --git a/assets/themes/fritures/fritures.json b/assets/themes/fritures/fritures.json index 3117cda208..e33129b0be 100644 --- a/assets/themes/fritures/fritures.json +++ b/assets/themes/fritures/fritures.json @@ -59,6 +59,18 @@ } ] }, + "titleIcons": [ + { + "condition": { + "or": [ + "diet:vegetarian=yes", + "diet:vegan=yes" + ] + }, + "render": "" + }, + "defaults" + ], "tagRenderings": [ "images", { @@ -278,6 +290,25 @@ "icon": { "render": "./assets/themes/fritures/fries.svg" }, + "iconOverlays": [ + { + "if": "opening_hours~*", + "then": "isOpen", + "badge": true + }, + { + "if": { + "or": [ + "diet:vegetarian=yes", + "diet:vegan=yes" + ] + }, + "then": { + "render": "circle:white;./assets/themes/fritures/Vegetarian-mark.svg" + }, + "badge": true + } + ], "width": { "render": "8" }, diff --git a/assets/themes/fritures/license_info.json b/assets/themes/fritures/license_info.json index ba2f607f6c..2aab8e4fc5 100644 --- a/assets/themes/fritures/license_info.json +++ b/assets/themes/fritures/license_info.json @@ -1,4 +1,14 @@ [ + { + "authors": [ + "European Vegetarian Union" + ], + "path": "Vegetarian-mark.svg", + "license": "PD", + "sources": [ + "https://commons.wikimedia.org/wiki/File:Vegetarian-mark.svg" + ] + }, { "authors": [ "Freepik"