Fossil SCM

Make the timeline-default-length setting accessible on the timeline configuration page. Make it default to 50, not 10.

drh 2021-02-10 12:02 trunk
Commit 8efc4d548cd990bef4f0322a4c183fe9c0eaeeccf01641cce86dd4d65a6a7ac7
2 files changed +7 +2 -2
--- src/setup.c
+++ src/setup.c
@@ -797,10 +797,17 @@
797797
multiple_choice_attribute("Style", "timeline-default-style",
798798
"tdss", "0", N_TIMELINE_VIEW_STYLE, timeline_view_styles);
799799
@ <p>The default timeline viewing style, for when the user has not
800800
@ specified an alternative. (Property: "timeline-default-style")</p>
801801
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
+
802809
@ <hr />
803810
multiple_choice_attribute("Per-Item Time Format", "timeline-date-format",
804811
"tdf", "0", count(azTimeFormats)/2, azTimeFormats);
805812
@ <p>If the "HH:MM" or "HH:MM:SS" format is selected, then the date is shown
806813
@ in a separate box (using CSS class "timelineDate") whenever the date
807814
--- 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 @@
16921692
if( fossil_strcmp(z,"all")==0 ){
16931693
nEntry = 0;
16941694
}else{
16951695
nEntry = atoi(z);
16961696
if( nEntry<=0 ){
1697
- z = "10";
1698
- nEntry = 10;
1697
+ z = "50";
1698
+ nEntry = 50;
16991699
}
17001700
}
17011701
}else{
17021702
nEntry = 50;
17031703
}
17041704
--- 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

Keyboard Shortcuts

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