Fossil SCM
Make the timeline-default-length setting accessible on the timeline configuration page. Make it default to 50, not 10.
Commit
8efc4d548cd990bef4f0322a4c183fe9c0eaeeccf01641cce86dd4d65a6a7ac7
Parent
eb8af11bf3054a4…
2 files changed
+7
+2
-2
+7
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -797,10 +797,17 @@ | ||
| 797 | 797 | multiple_choice_attribute("Style", "timeline-default-style", |
| 798 | 798 | "tdss", "0", N_TIMELINE_VIEW_STYLE, timeline_view_styles); |
| 799 | 799 | @ <p>The default timeline viewing style, for when the user has not |
| 800 | 800 | @ specified an alternative. (Property: "timeline-default-style")</p> |
| 801 | 801 | |
| 802 | + @ <hr /> | |
| 803 | + entry_attribute("Default Number Of Rows", 6, "timeline-default-length", | |
| 804 | + "tldl", "50", 0); | |
| 805 | + @ <p>The maximum number of rows to show on a timeline in the absence | |
| 806 | + @ of a user display preference cookie setting or an explicit n= query | |
| 807 | + @ parameter. (Property: "timeline-default-length")</p> | |
| 808 | + | |
| 802 | 809 | @ <hr /> |
| 803 | 810 | multiple_choice_attribute("Per-Item Time Format", "timeline-date-format", |
| 804 | 811 | "tdf", "0", count(azTimeFormats)/2, azTimeFormats); |
| 805 | 812 | @ <p>If the "HH:MM" or "HH:MM:SS" format is selected, then the date is shown |
| 806 | 813 | @ in a separate box (using CSS class "timelineDate") whenever the date |
| 807 | 814 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -797,10 +797,17 @@ | |
| 797 | multiple_choice_attribute("Style", "timeline-default-style", |
| 798 | "tdss", "0", N_TIMELINE_VIEW_STYLE, timeline_view_styles); |
| 799 | @ <p>The default timeline viewing style, for when the user has not |
| 800 | @ specified an alternative. (Property: "timeline-default-style")</p> |
| 801 | |
| 802 | @ <hr /> |
| 803 | multiple_choice_attribute("Per-Item Time Format", "timeline-date-format", |
| 804 | "tdf", "0", count(azTimeFormats)/2, azTimeFormats); |
| 805 | @ <p>If the "HH:MM" or "HH:MM:SS" format is selected, then the date is shown |
| 806 | @ in a separate box (using CSS class "timelineDate") whenever the date |
| 807 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -797,10 +797,17 @@ | |
| 797 | multiple_choice_attribute("Style", "timeline-default-style", |
| 798 | "tdss", "0", N_TIMELINE_VIEW_STYLE, timeline_view_styles); |
| 799 | @ <p>The default timeline viewing style, for when the user has not |
| 800 | @ specified an alternative. (Property: "timeline-default-style")</p> |
| 801 | |
| 802 | @ <hr /> |
| 803 | entry_attribute("Default Number Of Rows", 6, "timeline-default-length", |
| 804 | "tldl", "50", 0); |
| 805 | @ <p>The maximum number of rows to show on a timeline in the absence |
| 806 | @ of a user display preference cookie setting or an explicit n= query |
| 807 | @ parameter. (Property: "timeline-default-length")</p> |
| 808 | |
| 809 | @ <hr /> |
| 810 | multiple_choice_attribute("Per-Item Time Format", "timeline-date-format", |
| 811 | "tdf", "0", count(azTimeFormats)/2, azTimeFormats); |
| 812 | @ <p>If the "HH:MM" or "HH:MM:SS" format is selected, then the date is shown |
| 813 | @ in a separate box (using CSS class "timelineDate") whenever the date |
| 814 |
+2
-2
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -1692,12 +1692,12 @@ | ||
| 1692 | 1692 | if( fossil_strcmp(z,"all")==0 ){ |
| 1693 | 1693 | nEntry = 0; |
| 1694 | 1694 | }else{ |
| 1695 | 1695 | nEntry = atoi(z); |
| 1696 | 1696 | if( nEntry<=0 ){ |
| 1697 | - z = "10"; | |
| 1698 | - nEntry = 10; | |
| 1697 | + z = "50"; | |
| 1698 | + nEntry = 50; | |
| 1699 | 1699 | } |
| 1700 | 1700 | } |
| 1701 | 1701 | }else{ |
| 1702 | 1702 | nEntry = 50; |
| 1703 | 1703 | } |
| 1704 | 1704 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1692,12 +1692,12 @@ | |
| 1692 | if( fossil_strcmp(z,"all")==0 ){ |
| 1693 | nEntry = 0; |
| 1694 | }else{ |
| 1695 | nEntry = atoi(z); |
| 1696 | if( nEntry<=0 ){ |
| 1697 | z = "10"; |
| 1698 | nEntry = 10; |
| 1699 | } |
| 1700 | } |
| 1701 | }else{ |
| 1702 | nEntry = 50; |
| 1703 | } |
| 1704 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1692,12 +1692,12 @@ | |
| 1692 | if( fossil_strcmp(z,"all")==0 ){ |
| 1693 | nEntry = 0; |
| 1694 | }else{ |
| 1695 | nEntry = atoi(z); |
| 1696 | if( nEntry<=0 ){ |
| 1697 | z = "50"; |
| 1698 | nEntry = 50; |
| 1699 | } |
| 1700 | } |
| 1701 | }else{ |
| 1702 | nEntry = 50; |
| 1703 | } |
| 1704 |