Fossil SCM

Make Th1 variable $current_page available to the header and footer.

drh 2008-05-17 13:40 trunk
Commit a0f18644994ad929a4d527382b2f47836c593a0b
1 file changed +1
--- src/style.c
+++ src/style.c
@@ -82,10 +82,11 @@
8282
/* Generate the header up through the main menu */
8383
Th_Store("project_name", db_get("project-name","Unnamed Fossil Project"));
8484
Th_Store("title", zTitle);
8585
Th_Store("baseurl", g.zBaseURL);
8686
Th_Store("index_page", db_get("index-page","/home"));
87
+ Th_Store("current_page", g.zPath);
8788
Th_Store("manifest_version", MANIFEST_VERSION);
8889
Th_Store("manifest_date", MANIFEST_DATE);
8990
if( g.zLogin ){
9091
Th_Store("login", g.zLogin);
9192
}
9293
--- src/style.c
+++ src/style.c
@@ -82,10 +82,11 @@
82 /* Generate the header up through the main menu */
83 Th_Store("project_name", db_get("project-name","Unnamed Fossil Project"));
84 Th_Store("title", zTitle);
85 Th_Store("baseurl", g.zBaseURL);
86 Th_Store("index_page", db_get("index-page","/home"));
 
87 Th_Store("manifest_version", MANIFEST_VERSION);
88 Th_Store("manifest_date", MANIFEST_DATE);
89 if( g.zLogin ){
90 Th_Store("login", g.zLogin);
91 }
92
--- src/style.c
+++ src/style.c
@@ -82,10 +82,11 @@
82 /* Generate the header up through the main menu */
83 Th_Store("project_name", db_get("project-name","Unnamed Fossil Project"));
84 Th_Store("title", zTitle);
85 Th_Store("baseurl", g.zBaseURL);
86 Th_Store("index_page", db_get("index-page","/home"));
87 Th_Store("current_page", g.zPath);
88 Th_Store("manifest_version", MANIFEST_VERSION);
89 Th_Store("manifest_date", MANIFEST_DATE);
90 if( g.zLogin ){
91 Th_Store("login", g.zLogin);
92 }
93

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button