mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
remove unnecessary argument from @embeddedPageTemplate() and @eventPageTemplate()
This commit is contained in:
@@ -105,7 +105,6 @@ templ calendarEventTemplate(params CalendarPageParams, isEmbed bool) {
|
||||
@embeddedPageTemplate(
|
||||
params.Event,
|
||||
params.NeventNaked,
|
||||
isEmbed,
|
||||
) {
|
||||
@calendarEventInnerBlock(params)
|
||||
}
|
||||
@@ -117,7 +116,6 @@ templ calendarEventTemplate(params CalendarPageParams, isEmbed bool) {
|
||||
params.Clients,
|
||||
params.Details,
|
||||
params.Event,
|
||||
isEmbed,
|
||||
) {
|
||||
@calendarEventInnerBlock(params)
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ package main
|
||||
templ embeddedPageTemplate(
|
||||
event EnhancedEvent,
|
||||
NeventNaked string,
|
||||
isEmbed bool,
|
||||
) {
|
||||
<!DOCTYPE html>
|
||||
<html class="theme--default text-lg font-light print:text-base sm:text-xl">
|
||||
@@ -16,7 +15,7 @@ templ embeddedPageTemplate(
|
||||
href="/njump/static/tailwind-bundle.min.css"
|
||||
/>
|
||||
</head>
|
||||
<body
|
||||
<body
|
||||
class="relative bg-white text-gray-600 dark:bg-neutral-900 dark:text-neutral-50 print:text-black sm:items-center sm:justify-center cursor-pointer"
|
||||
event-data={ templ.JSONString(NeventNaked) }
|
||||
>
|
||||
|
||||
@@ -7,7 +7,6 @@ templ eventPageTemplate(
|
||||
clients []ClientReference,
|
||||
details DetailsParams,
|
||||
event EnhancedEvent,
|
||||
isEmbed bool,
|
||||
) {
|
||||
<html class="theme--default text-lg font-light print:text-base sm:text-xl">
|
||||
<meta charset="UTF-8"/>
|
||||
|
||||
@@ -44,7 +44,6 @@ templ fileMetadataTemplate(params FileMetadataPageParams, isEmbed bool) {
|
||||
@embeddedPageTemplate(
|
||||
params.Event,
|
||||
params.NeventNaked,
|
||||
isEmbed,
|
||||
) {
|
||||
@fileMetadataInnerBlock(params)
|
||||
}
|
||||
@@ -56,7 +55,6 @@ templ fileMetadataTemplate(params FileMetadataPageParams, isEmbed bool) {
|
||||
params.Clients,
|
||||
params.Details,
|
||||
params.Event,
|
||||
isEmbed,
|
||||
) {
|
||||
@fileMetadataInnerBlock(params)
|
||||
}
|
||||
|
||||
@@ -58,7 +58,6 @@ templ liveEventTemplate(params LiveEventPageParams, isEmbed bool) {
|
||||
@embeddedPageTemplate(
|
||||
params.Event,
|
||||
params.NeventNaked,
|
||||
isEmbed,
|
||||
) {
|
||||
@liveEventInnerBlock(params)
|
||||
}
|
||||
@@ -70,7 +69,6 @@ templ liveEventTemplate(params LiveEventPageParams, isEmbed bool) {
|
||||
params.Clients,
|
||||
params.Details,
|
||||
params.Event,
|
||||
isEmbed,
|
||||
) {
|
||||
@liveEventInnerBlock(params)
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ templ liveEventMessageTemplate(params LiveEventMessagePageParams, isEmbed bool)
|
||||
@embeddedPageTemplate(
|
||||
params.Event,
|
||||
params.NeventNaked,
|
||||
isEmbed,
|
||||
) {
|
||||
@liveEventMessageInnerBlock(params)
|
||||
}
|
||||
@@ -36,7 +35,6 @@ templ liveEventMessageTemplate(params LiveEventMessagePageParams, isEmbed bool)
|
||||
params.Clients,
|
||||
params.Details,
|
||||
params.Event,
|
||||
isEmbed,
|
||||
) {
|
||||
@liveEventMessageInnerBlock(params)
|
||||
}
|
||||
|
||||
@@ -38,7 +38,6 @@ templ noteTemplate(params NotePageParams, isEmbed bool) {
|
||||
@embeddedPageTemplate(
|
||||
params.Event,
|
||||
params.NeventNaked,
|
||||
isEmbed,
|
||||
) {
|
||||
@noteInnerBlock(params)
|
||||
}
|
||||
@@ -50,7 +49,6 @@ templ noteTemplate(params NotePageParams, isEmbed bool) {
|
||||
params.Clients,
|
||||
params.Details,
|
||||
params.Event,
|
||||
isEmbed,
|
||||
) {
|
||||
@noteInnerBlock(params)
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ type WikiPageParams struct {
|
||||
WikiEvent Kind30818Metadata
|
||||
Clients []ClientReference
|
||||
}
|
||||
|
||||
templ wikiInnerBlock(params WikiPageParams) {
|
||||
<h1 class="flex text-2xl items-center">
|
||||
<div class="inline-block px-2 mr-2 text-base bg-strongpink text-white rounded-md">Wiki <span class="text-base">></span></div>
|
||||
@@ -27,7 +28,6 @@ templ wikiEventTemplate(params WikiPageParams, isEmbed bool) {
|
||||
@embeddedPageTemplate(
|
||||
params.Event,
|
||||
params.NeventNaked,
|
||||
isEmbed,
|
||||
) {
|
||||
@wikiInnerBlock(params)
|
||||
}
|
||||
@@ -39,9 +39,8 @@ templ wikiEventTemplate(params WikiPageParams, isEmbed bool) {
|
||||
params.Clients,
|
||||
params.Details,
|
||||
params.Event,
|
||||
isEmbed,
|
||||
) {
|
||||
@wikiInnerBlock(params)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user