Add phone number and address, dynamic map to mobile site

This commit is contained in:
saurabhbhatia committed 2013-12-05 17:27:30 +08:00
1 parent 947c907f73
commit 0eb8e1a305
7 files changed
+30 -3

No files matched your search

+3
View File
@@ -27,6 +27,7 @@ class MobileController < ApplicationController
end
def dialog_contact
@site = Site.first
@no_menu = @no_footer = true
@page_title = t('mobile.contact')
end
@@ -42,6 +43,8 @@ class MobileController < ApplicationController
end
def map
site = Site.first
@coordinates = Geocoder.coordinates("#{site.address}")
@no_menu = @no_footer = true
@page_title = t('mobile.location')
end