Differences From:
File
src/setup.c
part of check-in
[4f641e7e4e]
- The /index webpage pulls up the wiki page specified in Setup/Configuration.s
by
drh on
2007-09-02 01:23:13.
Also file
src/setup.c
part of check-in
[bbcb6326c9]
- Pulled in the navbar and timeline changes.
by
aku on
2007-09-17 00:58:51.
[view]
To:
File
src/setup.c
part of check-in
[07eaead5dc]
- Added RSS feed. You can set the RSS title, description in Setup. Added header to style to include title and pointer to the new RSS feed. The new RSS feed is BaseURL/timeline.rss
by
jnc on
2007-09-23 18:24:21.
Also file
src/setup.c
part of check-in
[dad40ffac0]
- Merge the RSS changes.
by
drh on
2007-09-23 20:18:58.
[view]
@@ -462,8 +462,28 @@
@ <input type="text" name="%s(zQParm)" value="%h(zVal)" size="%d(width)">
@ %s(zLabel)
}
+/*
+** Generate a text box for an attribute.
+*/
+static void textarea_attribute(
+ const char *zLabel, /* The text label on the textarea */
+ int rows, /* Rows in the textarea */
+ int cols, /* Columns in the textarea */
+ const char *zVar, /* The corresponding row in the VAR table */
+ const char *zQParm, /* The query parameter */
+ const char *zDflt /* Default value if VAR table entry does not exist */
+){
+ const char *zVal = db_get(zVar, zDflt);
+ const char *zQ = P(zQParm);
+ if( zQ && strcmp(zQ,zVal)!=0 ){
+ db_set(zVar, zQ);
+ zVal = zQ;
+ }
+ @ <textarea name="%s(zQParm)" rows="%d(rows)" cols="%d(cols)">%h(zVal)</textarea>
+ @ %s(zLabel)
+}
/*
** WEBPAGE: setup_access
@@ -536,11 +556,19 @@
@ Leave this blank to disable wiki. Wiki pages are
@ files within this subdirectory whose name is he wiki page title
@ and with the suffix ".wiki".</p>
+ entry_attribute("RSS Feed Title", 60, "rss-title", "rst", "");
+ @ <p>The title of the RSS feed that publishes the changes to the
+ @ repository. If left blank, the system will generate a generic
+ @ title that, unfortunantly, not very helpful.</p>
+
+ textarea_attribute("RSS Feed Description", 5, 60, "rss-description", "rsd", "");
+ @ <p>The description of the RSS feed that publishes the changes to
+ @ the repository. If left blank, the system will use the RSS Feed Title.
@ <hr>
@ <p><input type="submit" name="submit" value="Apply Changes"></p>
@ </form>
db_end_transaction(0);
style_footer();
}