Diff
Not logged in

Differences From:

File src/setup.c part of check-in [5f3ddcc1b8] - Add ticket configuration editing capability. by drh on 2007-11-25 21:11:33. [view]

To:

File src/setup.c part of check-in [ebb2765954] - Add the timeline display preferences page with the ability to turn on and off block markup in timeline comments and to limit the length of timeline comments. by drh on 2007-12-04 02:47:49. Also file src/setup.c part of check-in [d0305b305a] - Merged mainline into my branch to get the newest application. by aku on 2007-12-05 08:07:46. [view]

@@ -65,8 +65,10 @@
   setup_menu_entry("Access", "setup_access",
     "Control access settings.");
   setup_menu_entry("Configuration", "setup_config",
     "Configure the WWW components of the repository");
+  setup_menu_entry("Timeline", "setup_timeline",
+    "Timeline display preferences");
   setup_menu_entry("Tickets", "setup_ticket",
     "Configure the trouble-ticketing system for this repository");
   setup_menu_entry("CSS", "setup_editcss",
     "Edit the Cascading Style Sheet used by all pages of this repository");
@@ -529,10 +531,38 @@
   @ positive number.  The default is 8760 hours which is approximately equal
   @ to a year.</p>
 
   @ <hr>
-  onoff_attribute("Allow anonymous signup", "anon-signup", "asu", 0);
-  @ <p>Allow users to create their own accounts</p>
+  @ <p><input type="submit"  name="submit" value="Apply Changes"></p>
+  @ </form>
+  db_end_transaction(0);
+  style_footer();
+}
+
+/*
+** WEBPAGE: setup_timeline
+*/
+void setup_timeline(void){
+  login_check_credentials();
+  if( !g.okSetup ){
+    login_needed();
+  }
+
+  style_header("Timeline Display Preferences");
+  db_begin_transaction();
+  @ <form action="%s(g.zBaseURL)/setup_timeline" method="POST">
+
+  @ <hr>
+  onoff_attribute("Block markup in timeline",
+                  "timeline-block-markup", "tbm", 0);
+  @ <p>In timeline displays, check-in comments can be displayed with or
+  @ without block markup (paragraphs, tables, etc.)</p>
+
+  @ <hr>
+  entry_attribute("Max timeline comment length", 6,
+                  "timeline-max-comment", "tmc", "0");
+  @ <p>The maximum length of a comment to be displayed in a timeline.
+  @ "0" there is no length limit.</p>
 
   @ <hr>
   @ <p><input type="submit"  name="submit" value="Apply Changes"></p>
   @ </form>