Some pending changes, cosmetics/formatting
authorChristian Thaeter <ct@pipapo.org>
Wed, 13 Feb 2008 06:11:07 +0000 (07:11 +0100)
committerChristian Thaeter <ct@pipapo.org>
Wed, 13 Feb 2008 06:11:07 +0000 (07:11 +0100)
Disable Codepress

remove the 'upload' button from the edit ui (Stage/Commit buttons will do)

src/edit.c
src/object_tree.c
src/webgit.c
src/webgit.h

index a9b4af6..f8b5b4f 100644 (file)
@@ -131,12 +131,6 @@ webgit_edit_blob_content_action (struct webgit_repo_info* repo, unsigned char* s
                                                    html_attr ("value", ""),
                                                    html_attr ("type", "file")
                                                    )
-                                         ),
-                                   html (html_tag ("input",
-                                                   html_attr ("name", "upload"),
-                                                   html_attr ("value", "Upload"),
-                                                   html_attr ("type", "submit")
-                                                   )
                                          )
                                    )
                             ),
index 8bb5f0e..377b3f4 100644 (file)
@@ -59,13 +59,12 @@ webgit_object_tree_parent_link (struct webgit_query* query, char* fmt)
 /*
   Display trees
 */
-
 static Html
 webgit_object_tree_menu_action (struct webgit_repo_info* repo, unsigned char* sha1, struct tree *tree)
 {
-  (void) repo;
   (void) sha1;
   (void) tree;
+
   return html (html_tag ("div"),
                webgit_repo_logo (repo), "<br />",
                // TODO: "diff against.. <br />",
index b4c8901..742ed87 100644 (file)
@@ -331,7 +331,7 @@ main (int argc, char**argv)
                                                                 webgit_webskinpath (&query, "icons/favicon.png")
                                                                 )
 #ifdef ENABLE_CODEPRESS
-                                                  , html (
+                                                  , html ( /*TODO, only if action == object && object == blob*/
                                                           html_tag ("script",
                                                                     html_attr ("src", "/codepress/codepress.js"),
                                                                     html_attr ("type", "text/javascript")
index d0ba4db..be06c08 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "llist.h"
 
-#define ENABLE_CODEPRESS 1
+//#define ENABLE_CODEPRESS 1
 //#define ENABLE_SORTTABLE 1
 
 #define WEBGIT_CONFIG "./webgit.conf" /* TODO fix via configure --with-webgit-config=... */