Merge pull request #151 from jianyuan/add-email-to-company

Add email link to company page
This commit is contained in:
Eduard Urbach 2018-04-25 00:55:59 +02:00 committed by GitHub
commit 741dc687c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,11 @@ component CompanyPage(company *arn.Company, studioAnime, producedAnime, licensed
Icon("external-link") Icon("external-link")
span= link.Title span= link.Title
if company.Email != ""
a.light-button.mountable(href="mailto:" + company.Email, data-mountable-type="company-link")
Icon("envelope")
span Email
a.light-button.mountable(href="/api" + company.Link(), target="_blank", data-mountable-type="company-link") a.light-button.mountable(href="/api" + company.Link(), target="_blank", data-mountable-type="company-link")
Icon("code") Icon("code")
span API span API