Update compliance landing page
Show district logo, phone number, etc.
This commit is contained in:
parent
457f123f69
commit
377683c4e3
2 changed files with 55 additions and 123 deletions
|
|
@ -12,10 +12,11 @@ import (
|
|||
)
|
||||
|
||||
type ContentDistrict struct {
|
||||
Name string
|
||||
URLLogo string
|
||||
URLRMO string
|
||||
URLWebsite string
|
||||
Name string
|
||||
OfficePhone string
|
||||
URLLogo string
|
||||
URLRMO string
|
||||
URLWebsite string
|
||||
}
|
||||
type ContentDistrictList struct {
|
||||
Districts []ContentDistrict
|
||||
|
|
@ -59,9 +60,10 @@ func newContentDistrict(d *models.Organization) *ContentDistrict {
|
|||
return nil
|
||||
}
|
||||
return &ContentDistrict{
|
||||
Name: d.Name,
|
||||
URLLogo: config.MakeURLNidus("/api/district/%s/logo", d.Slug.GetOr("unset")),
|
||||
URLRMO: config.MakeURLReport("/district/%s", d.Slug.GetOr("unset")),
|
||||
URLWebsite: d.Website.GetOr(""),
|
||||
Name: d.Name,
|
||||
OfficePhone: "123-456-7890",
|
||||
URLLogo: config.MakeURLNidus("/api/district/%s/logo", d.Slug.GetOr("unset")),
|
||||
URLRMO: config.MakeURLReport("/district/%s", d.Slug.GetOr("unset")),
|
||||
URLWebsite: d.Website.GetOr(""),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue