Refined orte

This commit is contained in:
Simon Martens
2025-09-27 17:44:34 +02:00
parent d48bba8e92
commit e8ff6d3d37
20 changed files with 882 additions and 906 deletions

View File

@@ -127,6 +127,7 @@ func GetQuickFilter(kgpz *xmlmodels.Library) fiber.Handler {
placeSummary := PlaceSummary{
ID: place.ID,
Name: name,
Geo: place.Geo,
}
places = append(places, placeSummary)
@@ -164,6 +165,7 @@ type PersonSummary struct {
type PlaceSummary struct {
ID string
Name string
Geo string
}
// IssueSummary represents an issue for the Jahr/Ausgabe filter

View File

@@ -33,8 +33,17 @@ func GetPlace(kgpz *xmlmodels.Library) fiber.Handler {
return c.SendStatus(fiber.StatusNotFound)
}
return c.Render("/ort/", fiber.Map{
"model": places,
})
// Render different templates based on whether we're showing list or detail view
if places.SelectedPlace != nil {
// Individual place detail view
return c.Render("/ort/detail/", fiber.Map{
"model": places,
})
} else {
// Places overview/list view
return c.Render("/ort/overview/", fiber.Map{
"model": places,
})
}
}
}