summaryrefslogtreecommitdiffstats
path: root/src/about
diff options
context:
space:
mode:
Diffstat (limited to 'src/about')
-rw-r--r--src/about/marquee.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/about/marquee.c b/src/about/marquee.c
index cd5ab33..70413aa 100644
--- a/src/about/marquee.c
+++ b/src/about/marquee.c
@@ -24,6 +24,20 @@
#include "paths.h"
#include "../application.h"
+const gchar *document =
+ "<!doctype html>"
+ "<html>"
+ "<head>"
+ "<title>%s</title>"
+ "</head>"
+ "<body>"
+ "<form>"
+ "<input type=\"submit\" name=\"toggle\""
+ "value=\"%s\">"
+ "</form>"
+ "</body>"
+ "</html>";
+
gchar *
mq_about_marquee_response(MqApplication *application, GHashTable *query)
{
@@ -35,6 +49,6 @@ mq_about_marquee_response(MqApplication *application, GHashTable *query)
}
}
- /* TODO: Respond with an HTML document with a toggle button. */
- return NULL;
+ return g_strdup_printf(document,
+ "DANGER", "DO NOT PRESS");
}