Made company elements mountable
This commit is contained in:
parent
25929233cf
commit
1c2cd2cee7
@ -3,26 +3,26 @@ component CompanyPage(company *arn.Company, user *arn.User)
|
|||||||
|
|
||||||
.company-page
|
.company-page
|
||||||
.company-header
|
.company-header
|
||||||
h1.company-name= company.Name.English
|
h1.company-name.mountable= company.Name.English
|
||||||
|
|
||||||
.company-description
|
.company-description.mountable
|
||||||
div!= markdown.Render(company.Description)
|
div!= markdown.Render(company.Description)
|
||||||
|
|
||||||
h3 Anime
|
h3.mountable Anime
|
||||||
|
|
||||||
.company-anime
|
.company-anime.mountable
|
||||||
each anime in company.Anime()
|
each anime in company.Anime()
|
||||||
a.company-anime-item.ajax(href=anime.Link(), title=anime.Title.ByUser(user))
|
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))
|
img.company-anime-item-image.lazy(data-src=anime.Image("small"), data-webp="true", alt=anime.Title.ByUser(user))
|
||||||
|
|
||||||
.company-sidebar
|
.company-sidebar
|
||||||
if company.Location.Latitude != 0 && company.Location.Longitude != 0
|
if company.Location.Latitude != 0 && company.Location.Longitude != 0
|
||||||
h3 Location
|
h3.mountable Location
|
||||||
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")
|
iframe.company-location.mountable(src="https://www.google.com/maps/embed/v1/place?q=" + toString(company.Location.Latitude) + "," + toString(company.Location.Longitude) + "&key=AIzaSyAsx6fhqRGaMLTixIJMIZBU4Mg6HJmvQf0")
|
||||||
|
|
||||||
if len(company.Links) > 0
|
if len(company.Links) > 0
|
||||||
h3 Links
|
h3.mountable Links
|
||||||
ul
|
ul.mountable
|
||||||
each link in company.Links
|
each link in company.Links
|
||||||
li
|
li
|
||||||
a(href=link.URL, target="_blank", rel="noopener")= link.Title
|
a(href=link.URL, target="_blank", rel="noopener")= link.Title
|
||||||
|
Loading…
Reference in New Issue
Block a user