From 99b6ccdefc6368b88316a8c8247ffcd04fa9f404 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 9 Jun 2019 18:59:39 +0200 Subject: [PATCH] Add Here WeGo URL --- gym/views.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gym/views.py b/gym/views.py index ee7a5d6..51b0dcb 100644 --- a/gym/views.py +++ b/gym/views.py @@ -48,6 +48,13 @@ class RoomDetailView(LoginRequiredMixin, QuickActionsMixin, SessionResetMixin, g if user_agent.is_mobile: url = f"waze://?ll={self.object.latitude},{self.object.longitude}&navigate=yes" name = 'Waze' + + quick_actions.append({ + 'url': f"here-location://{self.object.latitude},{self.object.longitude}", + 'category': 'info', + 'display': 'Here WeGo', + 'icon': 'fas fa-location-arrow', + }) else: url = (f"https://www.google.com/maps/place/{self.object.latitude},{self.object.longitude}" f"/@{self.object.latitude},{self.object.longitude},18z")