Commit 889b74d1 authored by Marcus Lundblad's avatar Marcus Lundblad
Browse files

placeView: Show takeaway for eating & drinking places

parent e559fb10
Pipeline #279166 passed with stage
in 11 minutes and 33 seconds
......@@ -31,6 +31,7 @@ const Application = imports.application;
const ContactPlace = imports.contactPlace;
const Overpass = imports.overpass;
const Place = imports.place;
const PlaceIcons = imports.placeIcons;
const PlaceViewImage = imports.placeViewImage;
const PlaceButtons = imports.placeButtons;
const PlaceFormatter = imports.placeFormatter;
......@@ -304,6 +305,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