Added company location via Google Maps

This commit is contained in:
Eduard Urbach 2017-11-27 19:03:37 +01:00
parent 1c81f938b7
commit 4c01ac9d6d
2 changed files with 8 additions and 1 deletions

View File

@ -9,6 +9,9 @@ component CompanyPage(company *arn.Company, user *arn.User)
each link in company.Links
li
a(href=link.URL, target="_blank", rel="noopener")= link.Title
if company.Location.Latitude != 0 && company.Location.Longitude != 0
iframe.company-location.lazy(data-src="https://www.google.com/maps/embed/v1/place?q=" + toString(company.Location.Latitude) + "," + toString(company.Location.Longitude) + "&key=AIzaSyAsx6fhqRGaMLTixIJMIZBU4Mg6HJmvQf0")
component CompanyTabs(company *arn.Company, user *arn.User)
.tabs

View File

@ -1,3 +1,7 @@
.company-description
max-width 700px
margin 0 auto
margin 0 auto
.company-location
width 100%
height 300px