revamped left menus entirely to a new menu definition system
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user