27 lines
946 B
Plaintext
Raw Normal View History

2018-03-23 18:04:06 +00:00
component PopularCompanies(companies []*arn.Company, companyToAnime map[string][]*arn.Anime, nextIndex int, user *arn.User)
2017-12-02 20:53:01 +00:00
CompaniesTabs(user)
2017-12-02 22:18:11 +00:00
h1.page-title Popular companies
2018-03-13 22:30:09 +00:00
ol#load-more-target.popular-companies
2018-03-23 18:04:06 +00:00
PopularCompaniesScrollable(companies, companyToAnime, user)
2018-03-13 22:06:16 +00:00
if nextIndex != -1
.buttons
LoadMore(nextIndex)
2018-03-23 18:04:06 +00:00
component PopularCompaniesScrollable(companies []*arn.Company, companyToAnime map[string][]*arn.Anime, user *arn.User)
2018-03-13 22:06:16 +00:00
each company in companies
2018-03-13 22:30:09 +00:00
li.popular-company.mountable
a.popular-company-header(href=company.Link())
2018-03-23 17:15:04 +00:00
Icon("building")
span.popular-company-name= company.Name.English
2018-03-23 20:13:04 +00:00
.popular-company-body.popular-company-description!= markdown.Render(company.Description)
2018-03-23 17:15:04 +00:00
.popular-company-footer
2018-03-23 18:04:06 +00:00
.company-anime
2018-03-23 18:34:48 +00:00
each anime in utils.MaxAnime(companyToAnime[company.ID], 12)
2018-03-23 18:04:06 +00:00
CompanyAnime(anime, user)
2018-03-13 22:30:09 +00:00
2018-03-13 22:06:16 +00:00
//- span= " (" + strconv.Itoa(popularity[company.ID]) + ")"