2017-12-02 23:18:11 +01:00

30 lines
770 B
Plaintext

component Companies(groups [][]*arn.Company, user *arn.User)
CompaniesTabs(user)
h1.page-title All companies
.companies
each group in groups
.companies-group
h3= group[0].Name.English[:1]
ul
each company in group
li.mountable
a.ajax(href=company.Link())= company.Name.English
component CompaniesTabs(user *arn.User)
.tabs
Tab("All", "font", "/companies")
Tab("Popular", "globe", "/companies/popular")
.corner-buttons
if user != nil
if user.DraftIndex().CompanyID == ""
button.action(data-action="newObject", data-trigger="click", data-type="company")
Icon("plus")
span Add company
else
a.button.ajax(href="/company/" + user.DraftIndex().CompanyID + "/edit")
Icon("pencil")
span Edit draft