Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Revision:
109:3e82f62c7e1f
Parent:
103:91194cc19bbb
--- a/log/web-log-html.c	Sun Apr 28 09:56:42 2019 +0000
+++ b/log/web-log-html.c	Mon Apr 29 14:45:30 2019 +0000
@@ -1,22 +1,22 @@
 #include "http.h"
-#include "page.h"
+#include "web-page-base.h"
+#include "web-add.h"
 #include "log.h"
-#include "web-base.h"
 
 void WebLogHtml()
 {
     HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
-    PageAddHeader(PageSite, "Log", "settings.css", NULL);
-    PageAddNav(LOG_PAGE);
-    PageAddH1(PageSite, "Log");
+    WebAddHeader("Log", "settings.css", NULL);
+    WebAddNav(LOG_PAGE);
+    WebAddH1("Log");
     
-                 PageAddInputButton("Existing content",      "Clear",    "/log", "clearlog"    );
-    if (LogUart) PageAddInputButton("Output to uart is on",  "Turn off", "/log", "chg-log-uart");
-    else         PageAddInputButton("Output to uart is off", "Turn on",  "/log", "chg-log-uart");
+                 WebAddInputButton("Existing content",      "Clear",    "/log", "clearlog"    );
+    if (LogUart) WebAddInputButton("Output to uart is on",  "Turn off", "/log", "chg-log-uart");
+    else         WebAddInputButton("Output to uart is off", "Turn on",  "/log", "chg-log-uart");
     
     HttpAddText("<code>");
     HttpAddStream(LogEnumerateStart, LogEnumerate);
     HttpAddText("</code>");
     
-    PageAddEnd();
+    WebAddEnd();
 }