revamped left menus entirely to a new menu definition system

This commit is contained in:
2025-10-13 20:59:33 -06:00
parent ed10c83b01
commit b1270a262e
10 changed files with 183 additions and 114 deletions
-11
View File
@@ -40,7 +40,6 @@ type AmContext interface {
OutputType() string
Parameter(string) string
RemoteIP() string
Render(string) error
ReplaceUser(*database.User)
SaveSession() error
SubRender(string) ([]byte, error)
@@ -163,16 +162,6 @@ func (c *amContext) RemoteIP() string {
return c.echoContext.RealIP()
}
/* Render renders a template to the output. Called at the top level only.
* Parameters:
* name = The name of the tempate to be rendered.
* Returns:
* Standard Go error status.
*/
func (c *amContext) Render(name string) error {
return c.echoContext.Render(c.httprc, name, c)
}
/* ReplaceUser replaces the current user in the context.
* Parameters:
* u - New user to associate with the context.