`;
TS_IndexElement(
"comedor",
diff --git a/src/page/notificaciones.js b/src/page/notificaciones.js
index 78114a2..ce07765 100644
--- a/src/page/notificaciones.js
+++ b/src/page/notificaciones.js
@@ -171,7 +171,7 @@ PAGES.notificaciones = {
container.innerHTML = `
+
`;
TS_IndexElement(
"notificaciones",
diff --git a/src/page/resumen_diario.js b/src/page/resumen_diario.js
index 8ba5140..6ed3620 100644
--- a/src/page/resumen_diario.js
+++ b/src/page/resumen_diario.js
@@ -1,11 +1,14 @@
PAGES.resumen_diario = {
navcss: "btn3",
- Title: "Resumen Semanal",
+ Title: "Resumen Diario",
index: function () {
var table_materialesLow = safeuuid();
var table_personasHigh = safeuuid();
+ var table_comedor = safeuuid();
container.innerHTML = `
-
Resumen Semanal
+
Resumen Diario
+
Menú del comedor de hoy
+
Personas con café gratis (para el Viernes)
Materiales faltantes (o por llegar)
@@ -138,5 +141,27 @@ PAGES.resumen_diario = {
add_row(data, key);
}
});
+
+ // Comedor (.get("comedor").get(
))
+ gun
+ .get(TABLE)
+ .get("comedor")
+ .get(CurrentISODate())
+ .once((data, key) => {
+ function add_row(data) {
+ // Fix newlines
+ data.Platos = data.Platos.replace(/\n/g, "
");
+ // Display platos
+ document.getElementById(table_comedor).innerHTML += data.Platos || "No hay platos registrados para hoy.";
+ }
+ if (typeof data == "string") {
+ SEA.decrypt(data, SECRET, (data) => {
+ add_row(data);
+ });
+ } else {
+ add_row(data);
+ }
+ });
+
},
};