summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-29 15:10:08 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-29 15:10:08 (EDT)
commita6feec8f22af0266f8003a8d4aeda3fb2adbcab7 (patch)
tree9737c64e1080c2f0bdc61c25141c1ce758e1cc76 /src
parent8bc34d6bc95d7f0fe6e1d0eb6593ebfadfcae687 (diff)
downloadmarquee-a6feec8f22af0266f8003a8d4aeda3fb2adbcab7.zip
marquee-a6feec8f22af0266f8003a8d4aeda3fb2adbcab7.tar.gz
marquee-a6feec8f22af0266f8003a8d4aeda3fb2adbcab7.tar.bz2
mq_about_marquee_response(): Return an HTML document
Diffstat (limited to 'src')
-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");
}