Fossil SCM

Add the 'project_description' variable to TH1.

mistachkin 2016-10-26 21:26 trunk merge
Commit cd219d31c16d887f7504169290bc5bba9f48e53c
--- src/style.c
+++ src/style.c
@@ -400,10 +400,11 @@
400400
401401
if( g.thTrace ) Th_Trace("BEGIN_HEADER<br />\n", -1);
402402
403403
/* Generate the header up through the main menu */
404404
Th_Store("project_name", db_get("project-name","Unnamed Fossil Project"));
405
+ Th_Store("project_description", db_get("project-description",""));
405406
Th_Store("title", zTitle);
406407
Th_Store("baseurl", g.zBaseURL);
407408
Th_Store("secureurl", login_wants_https_redirect()? g.zHttpsURL: g.zBaseURL);
408409
Th_Store("home", g.zTop);
409410
Th_Store("index_page", db_get("index-page","/home"));
410411
--- src/style.c
+++ src/style.c
@@ -400,10 +400,11 @@
400
401 if( g.thTrace ) Th_Trace("BEGIN_HEADER<br />\n", -1);
402
403 /* Generate the header up through the main menu */
404 Th_Store("project_name", db_get("project-name","Unnamed Fossil Project"));
 
405 Th_Store("title", zTitle);
406 Th_Store("baseurl", g.zBaseURL);
407 Th_Store("secureurl", login_wants_https_redirect()? g.zHttpsURL: g.zBaseURL);
408 Th_Store("home", g.zTop);
409 Th_Store("index_page", db_get("index-page","/home"));
410
--- src/style.c
+++ src/style.c
@@ -400,10 +400,11 @@
400
401 if( g.thTrace ) Th_Trace("BEGIN_HEADER<br />\n", -1);
402
403 /* Generate the header up through the main menu */
404 Th_Store("project_name", db_get("project-name","Unnamed Fossil Project"));
405 Th_Store("project_description", db_get("project-description",""));
406 Th_Store("title", zTitle);
407 Th_Store("baseurl", g.zBaseURL);
408 Th_Store("secureurl", login_wants_https_redirect()? g.zHttpsURL: g.zBaseURL);
409 Th_Store("home", g.zTop);
410 Th_Store("index_page", db_get("index-page","/home"));
411
--- www/changes.wiki
+++ www/changes.wiki
@@ -10,10 +10,11 @@
1010
* Remove the "fusefs" command from builds that do not have the underlying
1111
support enabled.
1212
* TH1 enhancements:
1313
<ul><li>Add <nowiki>[unversioned content]</nowiki> command.</li>
1414
<li>Add <nowiki>[unversioned list]</nowiki> command.</li>
15
+ <li>Add project_description variable.</li>
1516
</ul>
1617
1718
<a name='v1_36'></a>
1819
<h2>Changes for Version 1.36 (2016-10-24)</h2>
1920
2021
--- www/changes.wiki
+++ www/changes.wiki
@@ -10,10 +10,11 @@
10 * Remove the "fusefs" command from builds that do not have the underlying
11 support enabled.
12 * TH1 enhancements:
13 <ul><li>Add <nowiki>[unversioned content]</nowiki> command.</li>
14 <li>Add <nowiki>[unversioned list]</nowiki> command.</li>
 
15 </ul>
16
17 <a name='v1_36'></a>
18 <h2>Changes for Version 1.36 (2016-10-24)</h2>
19
20
--- www/changes.wiki
+++ www/changes.wiki
@@ -10,10 +10,11 @@
10 * Remove the "fusefs" command from builds that do not have the underlying
11 support enabled.
12 * TH1 enhancements:
13 <ul><li>Add <nowiki>[unversioned content]</nowiki> command.</li>
14 <li>Add <nowiki>[unversioned list]</nowiki> command.</li>
15 <li>Add project_description variable.</li>
16 </ul>
17
18 <a name='v1_36'></a>
19 <h2>Changes for Version 1.36 (2016-10-24)</h2>
20
21
--- www/changes.wiki
+++ www/changes.wiki
@@ -10,10 +10,11 @@
1010
* Remove the "fusefs" command from builds that do not have the underlying
1111
support enabled.
1212
* TH1 enhancements:
1313
<ul><li>Add <nowiki>[unversioned content]</nowiki> command.</li>
1414
<li>Add <nowiki>[unversioned list]</nowiki> command.</li>
15
+ <li>Add project_description variable.</li>
1516
</ul>
1617
1718
<a name='v1_36'></a>
1819
<h2>Changes for Version 1.36 (2016-10-24)</h2>
1920
2021
--- www/changes.wiki
+++ www/changes.wiki
@@ -10,10 +10,11 @@
10 * Remove the "fusefs" command from builds that do not have the underlying
11 support enabled.
12 * TH1 enhancements:
13 <ul><li>Add <nowiki>[unversioned content]</nowiki> command.</li>
14 <li>Add <nowiki>[unversioned list]</nowiki> command.</li>
 
15 </ul>
16
17 <a name='v1_36'></a>
18 <h2>Changes for Version 1.36 (2016-10-24)</h2>
19
20
--- www/changes.wiki
+++ www/changes.wiki
@@ -10,10 +10,11 @@
10 * Remove the "fusefs" command from builds that do not have the underlying
11 support enabled.
12 * TH1 enhancements:
13 <ul><li>Add <nowiki>[unversioned content]</nowiki> command.</li>
14 <li>Add <nowiki>[unversioned list]</nowiki> command.</li>
15 <li>Add project_description variable.</li>
16 </ul>
17
18 <a name='v1_36'></a>
19 <h2>Changes for Version 1.36 (2016-10-24)</h2>
20
21
--- www/customskin.md
+++ www/customskin.md
@@ -144,10 +144,14 @@
144144
respository settings and the specific page being generated.
145145
146146
* **project_name** - The project_name variable is filled with the
147147
name of the project as configured under the Admin/Configuration
148148
menu.
149
+
150
+ * **project_description** - The project_description variable is
151
+ filled with the description of the project as configured under
152
+ the Admin/Configuration menu.
149153
150154
* **title** - The title variable holds the title of the page being
151155
generated.
152156
153157
The title variable is special in that it is deleted after
154158
--- www/customskin.md
+++ www/customskin.md
@@ -144,10 +144,14 @@
144 respository settings and the specific page being generated.
145
146 * **project_name** - The project_name variable is filled with the
147 name of the project as configured under the Admin/Configuration
148 menu.
 
 
 
 
149
150 * **title** - The title variable holds the title of the page being
151 generated.
152
153 The title variable is special in that it is deleted after
154
--- www/customskin.md
+++ www/customskin.md
@@ -144,10 +144,14 @@
144 respository settings and the specific page being generated.
145
146 * **project_name** - The project_name variable is filled with the
147 name of the project as configured under the Admin/Configuration
148 menu.
149
150 * **project_description** - The project_description variable is
151 filled with the description of the project as configured under
152 the Admin/Configuration menu.
153
154 * **title** - The title variable holds the title of the page being
155 generated.
156
157 The title variable is special in that it is deleted after
158

Keyboard Shortcuts

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