diff --git a/pages/company/company.pixy b/pages/company/company.pixy index 302e3d27..19457548 100644 --- a/pages/company/company.pixy +++ b/pages/company/company.pixy @@ -3,7 +3,12 @@ component CompanyPage(company *arn.Company, user *arn.User) h1= company.Name.English - .company-description!= markdown.Render(company.Description) + .company-description + div!= markdown.Render(company.Description) + ul + each link in company.Links + li + a(href=link.URL, target="_blank", rel="noopener")= link.Title component CompanyTabs(company *arn.Company, user *arn.User) .tabs diff --git a/utils/editform/editform.go b/utils/editform/editform.go index 3f482e06..a467ed25 100644 --- a/utils/editform/editform.go +++ b/utils/editform/editform.go @@ -12,7 +12,7 @@ import ( "github.com/animenotifier/notify.moe/utils" ) -// Render ... +// Render renders a generic editing UI for any kind of datatype that has an ID. func Render(obj interface{}, title string, user *arn.User) string { t := reflect.TypeOf(obj).Elem() v := reflect.ValueOf(obj).Elem() @@ -25,12 +25,15 @@ func Render(obj interface{}, title string, user *arn.User) string { b.WriteString(`