moving the header inside the main container
authorCillian de Roiste <cillian.deroiste@gmail.com>
Mon, 21 Jan 2008 19:55:16 +0000 (19:55 +0000)
committerCillian de Roiste <cillian.deroiste@gmail.com>
Mon, 21 Jan 2008 19:55:16 +0000 (19:55 +0000)
src/webgit.c

index 2fe930d..deacb4f 100644 (file)
@@ -137,6 +137,15 @@ webgit_mimetype (const char* name)
   return NULL;
 }
 
+static Html
+webgit_header (struct webgit_query* query)
+{
+  (void) query;
+  return html (
+                          html_tag("h1"),
+                          "webgit"
+                          );
+}
 
 int
 main (int argc, char**argv)
@@ -224,7 +233,7 @@ main (int argc, char**argv)
                                                          html_tag("div",
                                                                                                                                  html_attr("id", "container")
                                                                                                                                  ),
-                                                                                                                html(html_tag("div", html_attr("id", "header")), webgit_header_action (query)),
+                                                                                                                html(html_tag("div", html_attr("id", "header")), webgit_header (query)),
                                                                                                                 content,
                                                                                                                 html(
                                                                                                                          html_tag("div",