2017-11-18 10:46:17 +00:00
|
|
|
component CompanyPage(company *arn.Company, user *arn.User)
|
2017-11-19 00:15:57 +00:00
|
|
|
CompanyTabs(company, user)
|
|
|
|
|
2017-11-18 23:34:03 +00:00
|
|
|
h1= company.Name.English
|
|
|
|
|
2017-11-27 16:31:02 +00:00
|
|
|
.company-description
|
|
|
|
div!= markdown.Render(company.Description)
|
|
|
|
ul
|
|
|
|
each link in company.Links
|
|
|
|
li
|
|
|
|
a(href=link.URL, target="_blank", rel="noopener")= link.Title
|
2017-11-27 18:03:37 +00:00
|
|
|
|
|
|
|
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")
|
2017-11-19 00:15:57 +00:00
|
|
|
|
2017-11-27 20:19:17 +00:00
|
|
|
.company-anime
|
|
|
|
each anime in company.Anime()
|
|
|
|
a.company-anime-item.ajax(href=anime.Link(), title=anime.Title.ByUser(user))
|
|
|
|
img.company-anime-item-image.lazy(data-src=anime.Image("small"), data-webp="true", alt=anime.Title.ByUser(user))
|
|
|
|
|
2017-11-18 23:34:03 +00:00
|
|
|
component CompanyTabs(company *arn.Company, user *arn.User)
|
|
|
|
.tabs
|
|
|
|
Tab("Company", "building", company.Link())
|
|
|
|
Tab("Edit", "pencil", company.Link() + "/edit")
|