WIP: main-menu sufficient for now
authorChristian Thaeter <ct@pipapo.org>
Thu, 24 Jan 2008 18:53:38 +0000 (19:53 +0100)
committerChristian Thaeter <ct@pipapo.org>
Thu, 24 Jan 2008 18:53:38 +0000 (19:53 +0100)
src/actions.c

index 0e787de..f54fa4a 100644 (file)
@@ -18,6 +18,7 @@
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#include "webgit.h"
 #include "actions.h"
 #include "summary.h"
 #include "object.h"
 static Html
 webgit_main_menu_action (struct webgit_query* query)
 {
-  (void) query;
   return html (html_tag ("div"),
-               "Webgit logo<br />",
-               "Readme.html <br />",
-               "User (cookie) config <br />",
-               "About webgit (info/admin) <br />"
+               html (
+                     html_tag ("img",
+                               html_attr ("src", webgit_webskinpath (query, "icons/webgit_logo.png")),
+                               html_attr ("alt", "Webgit-Logo")
+                               )
+                     ), "<br />",
+               html_include (webgit_skinpath (query, "inc/site.inc")), "<br />",
+               // TODO: webgit_user_config_link (query), "<br />",
+               html (
+                     html_tag ("a",
+                               html_attr ("href", webgit_webskinpath (query, "inc/about.html"))
+                               ),
+                     "Powered by webgit"
+                     )
                );
 }