Check-in [82136b0a5f]
Not logged in
Overview

SHA1 Hash:82136b0a5f957c99ab46e3b1c1eca433c23b43de
Date: 2008-07-17 20:34:35
User: eric
Comment:Give /wiki a link to the Wiki page with the same name as the Project Name.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/wiki.c from [26fbd5a93f] to [21130cec42].

@@ -128,10 +128,16 @@
   if( !g.okRdWiki ){ login_needed(); return; }
   zPageName = P("name");
   if( zPageName==0 ){
     style_header("Wiki");
     @ <ul>
+    { char *zHomePageName = db_get("project-name",0);
+      if( zHomePageName ){
+        @ <li> <a href="%s(g.zBaseURL)/wiki?name=%s(zHomePageName)">
+        @      %s(zHomePageName)</a> wiki page.</li>
+      }
+    }
     @ <li> <a href="%s(g.zBaseURL)/timeline?y=w">Recent changes</a> to wiki
     @      pages. </li>
     @ <li> <a href="%s(g.zBaseURL)/wiki_rules">Formatting rules</a> for
     @      wiki.</li>
     @ <li> Use the <a href="%s(g.zBaseURL)/wiki?name=Sandbox">Sandbox</a>