adding header.inc and footer.inc (for skinning) to webgit.c
authorCillian de Roiste <cillian.deroiste@gmail.com>
Mon, 21 Jan 2008 21:06:40 +0000 (21:06 +0000)
committerCillian de Roiste <cillian.deroiste@gmail.com>
Mon, 21 Jan 2008 21:06:40 +0000 (21:06 +0000)
src/actions.c
src/webgit.c

index 9801597..8aaa31c 100644 (file)
@@ -54,8 +54,7 @@ webgit_header_action (struct webgit_query* query)
 {
   (void) query;
   return html (
-                          html_tag("h1"),
-                          "webgit"
+                          "webgit header action"
                           );
 }
 
index 015609d..861e219 100644 (file)
@@ -233,19 +233,23 @@ main (int argc, char**argv)
                                                          html_tag("div",
                                                                                                                                  html_attr("id", "container")
                                                                                                                                  ),
-                                                                                                                html(
-                                                                                                                         html_tag("div",
-                                                                                                                                          html_attr("id", "header")
-                                                                                                                                          ),
-                                                                                                                         html(html_tag("h1"),"webgit")
-                                                                                                                         ),
+                                                                                                                /* TODO header.inc should be configurable and may not exist
+                                                                                                                 The idea is to have a project header and footer available
+                                                                                                                 as plain html so that someone can install webgit
+                                                                                                                 and quickly add their project logo, menu back to the main
+                                                                                                                 project website and any other notices they may wish to add
+                                                                                                                 */
+                                                                                                                html_include ("/home/cillian/webgit/skins/default/inc/header.inc"),
                                                                                                                 content,
                                                                                                                 html(
                                                                                                                          html_tag("div",
                                                                                                                                           html_attr("id", "errors")
                                                                                                                                           ),
                                                                                                                          error_log
-                                                                                                                         )
+                                                                                                                         ),
+                                                                                                                // See TODO header.inc above
+                                                                                                                html_include ("/home/cillian/webgit/skins/default/inc/footer.inc"),
+
                                                          )
                                             
                                                    ),