Correction PDF

This commit is contained in:
2025-09-16 22:20:21 +02:00
parent d9fca86145
commit 41bd8254e7
17 changed files with 591 additions and 110 deletions

View File

@@ -39,4 +39,15 @@
<ul id="neededIngredients" class="hf-grid"></ul>
</section>
@{
var currentUser = Context.Session.GetString("UserName") ?? "";
bool isCore = currentUser.Equals("Mae", StringComparison.OrdinalIgnoreCase)
|| currentUser.Equals("Byakuya", StringComparison.OrdinalIgnoreCase);
}
<script>
window.CURRENT_USER = @Html.Raw(System.Text.Json.JsonSerializer.Serialize(currentUser));
window.IS_CORE_USER = @Html.Raw(isCore.ToString().ToLower());
// 👉 liste blanche pour la vue "partagée"
window.CORE_USERS = ["Mae","Byakuya"];
</script>
<script src="~/js/HelloFresh/ingredients.js" asp-append-version="true"></script>