This commit is contained in:
bronkuu 2026-05-27 15:28:52 +02:00
parent ef48719cf5
commit c489aa7f3d
6 changed files with 16 additions and 6 deletions

View file

@ -199,6 +199,7 @@ templ wyrobyHeader(activePage string) {
</p>
<nav>
@GreenLink(activePage, "wyroby", "Ciasta")
@GreenLink(activePage, "wyroby_deserki", "Deserki")
@GreenLink(activePage, "wyroby_torty", "Torty")
@GreenLink(activePage, "wyroby_slodkie_stoly", "Słodkie stoły")
@GreenLink(activePage, "wyroby_lody", "Lody")

View file

@ -226,6 +226,10 @@ func wyrobyHeader(activePage string) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = GreenLink(activePage, "wyroby_deserki", "Deserki").Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = GreenLink(activePage, "wyroby_torty", "Torty").Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err

View file

@ -18,10 +18,10 @@ templ card(product types.Product) {
</div>
}
templ WyrobyCiasta(products []types.Product) {
templ Wyroby(products []types.Product, page string) {
@layout("wyroby") {
<main>
@wyrobyHeader("wyroby")
@wyrobyHeader(page)
<div id="wyroby">
for _, product:= range products {
@card(product)

View file

@ -107,7 +107,7 @@ func card(product types.Product) templ.Component {
})
}
func WyrobyCiasta(products []types.Product) templ.Component {
func Wyroby(products []types.Product, page string) templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
@ -144,7 +144,7 @@ func WyrobyCiasta(products []types.Product) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = wyrobyHeader("wyroby").Render(ctx, templ_7745c5c3_Buffer)
templ_7745c5c3_Err = wyrobyHeader(page).Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}