Commit 48fb4f95 authored by Marcus Lundblad's avatar Marcus Lundblad
Browse files

placeView: Show takeaway for eating & drinking places

parent 5dca1990
Pipeline #278938 passed with stage
in 12 minutes and 1 second
......@@ -304,6 +304,36 @@ var PlaceView = GObject.registerClass({
linkUrl: 'mailto:%s'.format(place.email) });
}
if (place.eatingAndDrinking) {
switch (place.takeaway) {
case 'yes':
/* Translators:
* The establishment offers customers to purchase meals
* (or similar) to be consumed elsewhere
*/
content.push({ info: _("Offers takeaway"),
icon: PlaceIcons.getIconForPlace(place) });
break;
case 'no':
/* Translators:
* The establishment only offers customers to purchase
* meals (or similar) to be consumed on-premise.
*/
content.push({ info: _("Does not offer takeaway"),
icon: PlaceIcons.getIconForPlace(place) });
break;
case 'only':
/* Translators:
* The establishment only offers customers to purchase
* meals (or similar) to be consumed elsewhere. E.g.
* there is no seating on-premise for eating/drinking
*/
content.push({ info: _("Only offers takeaway"),
icon: PlaceIcons.getIconForPlace(place) });
break;
}
}
if (place.openingHours) {
content.push({ label: _("Opening hours"),
icon: 'emoji-recent-symbolic',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment