content,internal/frontend: remove UnitContentName
UnitContentName will only ever be "Main". Instead, hardcode in the text
to be displayed in the template.
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
@@ -55,9 +55,6 @@ type UnitPage struct {
// hidden due to issues like license restrictions.
CanShowDetails bool
- // UnitContentName is the display name of the selected unit content template".
- UnitContentName string
-
// Tabs contains data to render the varioius tabs on each details page.
Tabs []TabSettings
@@ -113,7 +110,6 @@ func (s *Server) serveUnitPage(ctx context.Context, w http.ResponseWriter, r *ht
PageLabels: pageLabels(um),
PageType: pageType(um),
CanShowDetails: canShowDetails,
- UnitContentName: tabSettings.DisplayName,
}
d, err := fetchDetailsForUnit(r, tab, ds, um)
if err != nil {
