aboutsummaryrefslogtreecommitdiff
path: root/ukulele.c
diff options
context:
space:
mode:
authorTom Glenne <tom@kyber.io>2016-11-10 19:17:04 +0100
committerTom Glenne <tom@kyber.io>2016-11-10 19:17:04 +0100
commite6258e22390462c88955147d91e230ab1aa3e11c (patch)
treeb17242e36aaadc5aea0adb8608ebf6872e651c40 /ukulele.c
parent56468e119466db0ea71c6611446d417b129fb861 (diff)
parentde495fa4a4a96faf74ef0768e956155f797606c5 (diff)
downloadukulele-e6258e22390462c88955147d91e230ab1aa3e11c.tar.xz
Merge branch 'master' of http://blekksprut.net/git/ukulele
Diffstat (limited to 'ukulele.c')
-rw-r--r--ukulele.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ukulele.c b/ukulele.c
index f1b87af..46bf1a4 100644
--- a/ukulele.c
+++ b/ukulele.c
@@ -37,8 +37,8 @@ void head(char *page, char *link, char *what) {
printf("Content-Type: text/html; charset=utf-8\n\n");
printf("<!doctype html>\n");
printf("<title>%s ยท %s</title>\n", title, page);
- printf("<link rel='stylesheet' type='text/css' href='%s/wiki.css'>\n", base);
- printf("<script src='%s/wiki.js'></script>\n", base);
+ printf("<link rel='stylesheet' type='text/css' href='%s/ukulele.css'>\n", base);
+ printf("<script src='%s/ukulele.js'></script>\n", base);
printf("<h1>");
if(link && what && !strcmp(what, "rediger"))
printf("<a data-text='%s' href='%s'>%s</a>", what, link, page);
@@ -123,7 +123,7 @@ int edit(char *path) {
printf("<form method='post'>\n");
printf("<p class='edit'>\n");
if(orz)
- printf("<a id='orz' href='#'>{picto}</a><br>\n");
+ printf("<a id='orz' data-url='%s' href='#'>{picto}</a><br>\n", orz);
printf("<textarea name=t rows=24 cols=72>");
if(fp)
while(fgets(buffer, sizeof(buffer), fp))