27 lines
955 B
Plaintext
27 lines
955 B
Plaintext
component PopularCompanies(companies []*arn.Company, companyToAnime map[string][]*arn.Anime, nextIndex int, user *arn.User)
|
|
CompaniesTabs(user)
|
|
|
|
h1.page-title Popular companies
|
|
|
|
ol#load-more-target.popular-companies
|
|
PopularCompaniesScrollable(companies, companyToAnime, user)
|
|
|
|
if nextIndex != -1
|
|
.buttons
|
|
LoadMore(nextIndex)
|
|
|
|
component PopularCompaniesScrollable(companies []*arn.Company, companyToAnime map[string][]*arn.Anime, user *arn.User)
|
|
each company in companies
|
|
li.popular-company.mountable
|
|
a.popular-company-header.ajax(href=company.Link())
|
|
Icon("building")
|
|
span.popular-company-name= company.Name.English
|
|
|
|
p.popular-company-body.popular-company-description(href=company.Link())= company.Description
|
|
|
|
.popular-company-footer
|
|
.company-anime
|
|
each anime in utils.MaxAnime(companyToAnime[company.ID], 12)
|
|
CompanyAnime(anime, user)
|
|
|
|
//- span= " (" + strconv.Itoa(popularity[company.ID]) + ")" |