Remove htmx script from view context (#59)
This commit is contained in:
@@ -92,7 +92,6 @@ let private generateViewContext messages viewCtx (ctx: HttpContext) =
|
|||||||
CurrentPage = ctx.Request.Path.Value[1..]
|
CurrentPage = ctx.Request.Path.Value[1..]
|
||||||
Messages = messages
|
Messages = messages
|
||||||
Generator = ctx.Generator
|
Generator = ctx.Generator
|
||||||
HtmxScript = htmxScript ctx.WebLog
|
|
||||||
IsAuthor = ctx.HasAccessLevel Author
|
IsAuthor = ctx.HasAccessLevel Author
|
||||||
IsEditor = ctx.HasAccessLevel Editor
|
IsEditor = ctx.HasAccessLevel Editor
|
||||||
IsWebLogAdmin = ctx.HasAccessLevel WebLogAdmin
|
IsWebLogAdmin = ctx.HasAccessLevel WebLogAdmin
|
||||||
|
|||||||
@@ -47,9 +47,6 @@ type AppViewContext = {
|
|||||||
/// <summary>The content of a page (wrapped when rendering the layout)</summary>
|
/// <summary>The content of a page (wrapped when rendering the layout)</summary>
|
||||||
Content: string
|
Content: string
|
||||||
|
|
||||||
/// <summary>A string to load the minified htmx script</summary>
|
|
||||||
HtmxScript: string
|
|
||||||
|
|
||||||
/// <summary>Whether the current user is an author</summary>
|
/// <summary>Whether the current user is an author</summary>
|
||||||
IsAuthor: bool
|
IsAuthor: bool
|
||||||
|
|
||||||
@@ -117,7 +114,6 @@ type AppViewContext = {
|
|||||||
Generator = ""
|
Generator = ""
|
||||||
Payload = obj ()
|
Payload = obj ()
|
||||||
Content = ""
|
Content = ""
|
||||||
HtmxScript = ""
|
|
||||||
IsAuthor = false
|
IsAuthor = false
|
||||||
IsEditor = false
|
IsEditor = false
|
||||||
IsWebLogAdmin = false
|
IsWebLogAdmin = false
|
||||||
|
|||||||
Reference in New Issue
Block a user