navbar search removed where it shouldnt be

This commit is contained in:
Priec
2026-06-25 14:56:19 +02:00
parent d68ed5ce7c
commit c0f4d0c93c
3 changed files with 7 additions and 15 deletions

View File

@@ -30,6 +30,8 @@ async fn index(
"customer_account_type": c.customer_account_type,
"currency_symbol": cur.symbol,
"lang": current_lang(&jar),
// The header search bar only appears on the landing page.
"on_home": true,
}),
)
}

View File

@@ -340,11 +340,6 @@ async fn index(
let mut context = run_search(&ctx, user.as_ref(), &SearchParams::default(), &cur).await?;
let c = guard::chrome_from(&ctx, user.as_ref());
add_chrome(&mut context, &c, &current_lang(&jar));
// The shop page carries its own search box in the listing toolbar, so the
// header search bar is redundant here — flag it so base.html can hide it.
if let Some(map) = context.as_object_mut() {
map.insert("on_shop".into(), json!(true));
}
format::view(&v, "shop/index.html", context)
}
@@ -382,11 +377,6 @@ async fn search(
let c = guard::chrome_from(&ctx, user.as_ref());
add_chrome(&mut context, &c, &lang);
// The shop page carries its own search box in the listing toolbar, so the
// header search bar is redundant here — flag it so base.html can hide it.
if let Some(map) = context.as_object_mut() {
map.insert("on_shop".into(), json!(true));
}
format::view(&v, "shop/index.html", context)
}