Fossil

Check-in [eed877c0]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add a setup parameter under Setup/Timeline for configuring the default number of entries in a timeline that lacks an n= query parameter.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: eed877c0a50e02326a303af7770342ff357c8f6fecd2173809377f09eb22b055
User & Date: drh 2017-11-27 16:03:30
Context
2017-11-27
17:50
Remove an unused function from the timeline logic. check-in: 50376e4b user: drh tags: trunk
16:03
Add a setup parameter under Setup/Timeline for configuring the default number of entries in a timeline that lacks an n= query parameter. check-in: eed877c0 user: drh tags: trunk
11:26
Omit query parameters from the /timeline view of search results. Use the defaults. check-in: cde6cbfc user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/setup.c.

1481
1482
1483
1484
1485
1486
1487







1488
1489
1490
1491
1492
1493
1494
  @ </table></blockquote>
  @ This setting selects which of the three subsections are included on each
  @ timeline entry and the order in which they are displayed.  When the [hash]
  @ is omitted but the (details) are included, then the hash is shown as one
  @ of the details.  The "comment&nbsp;|&nbsp;(details)" choice means that the
  @ details are displayed in a separate column from the comment.
  @ (Property: "timeline-commit-format")</p>








  @ <hr />
  onoff_attribute("Allow block-markup in timeline",
                  "timeline-block-markup", "tbm", 0, 0);
  @ <p>In timeline displays, check-in comments can be displayed with or
  @ without block markup such as paragraphs, tables, etc.
  @ (Property: "timeline-block-markup")</p>







>
>
>
>
>
>
>







1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
  @ </table></blockquote>
  @ This setting selects which of the three subsections are included on each
  @ timeline entry and the order in which they are displayed.  When the [hash]
  @ is omitted but the (details) are included, then the hash is shown as one
  @ of the details.  The "comment&nbsp;|&nbsp;(details)" choice means that the
  @ details are displayed in a separate column from the comment.
  @ (Property: "timeline-commit-format")</p>

  @ <hr />
  entry_attribute("Default Timeline Length", 6, "timeline-default-length", "tldl", "50", 0);
  @ <p>The default number of entries in a single /timeline that lacks the "n="
  @ query parameter.
  @ (Property: "timeline-default-length")
  @ </p>

  @ <hr />
  onoff_attribute("Allow block-markup in timeline",
                  "timeline-block-markup", "tbm", 0, 0);
  @ <p>In timeline displays, check-in comments can be displayed with or
  @ without block markup such as paragraphs, tables, etc.
  @ (Property: "timeline-block-markup")</p>

Changes to src/timeline.c.

1715
1716
1717
1718
1719
1720
1721

1722
1723
1724
1725
1726
1727
1728
  char *zOlderButton = 0;             /* URL for Older button at the bottom */
  char *zNewerButton = 0;             /* URL for Newer button at the top */
  int selectedRid = -9999999;         /* Show a highlight on this RID */
  int disableY = 0;                   /* Disable type selector on submenu */

  /* Set number of rows to display */
  z = P("n");

  if( z ){
    if( fossil_strcmp(z,"all")==0 ){
      nEntry = 0;
    }else{
      nEntry = atoi(z);
      if( nEntry<=0 ){
        cgi_replace_query_parameter("n","10");







>







1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
  char *zOlderButton = 0;             /* URL for Older button at the bottom */
  char *zNewerButton = 0;             /* URL for Newer button at the top */
  int selectedRid = -9999999;         /* Show a highlight on this RID */
  int disableY = 0;                   /* Disable type selector on submenu */

  /* Set number of rows to display */
  z = P("n");
  if( z==0 ) z = db_get("timeline-default-length",0);
  if( z ){
    if( fossil_strcmp(z,"all")==0 ){
      nEntry = 0;
    }else{
      nEntry = atoi(z);
      if( nEntry<=0 ){
        cgi_replace_query_parameter("n","10");