Fossil SCM

Fixes to form submenus on the timeline page.

drh 2015-02-05 13:50 UTC form-submenu
Commit e61dbb17cf36dbfdbcb73c35f94aa76e2aebc264
1 file changed +3 -4
+3 -4
--- src/timeline.c
+++ src/timeline.c
@@ -1542,29 +1542,28 @@
15421542
}
15431543
if( zSearch ){
15441544
blob_appendf(&desc, " matching \"%h\"", zSearch);
15451545
}
15461546
if( g.perm.Hyperlink ){
1547
- style_submenu_binary("v","With Files","Without Files");
15481547
if( zAfter || n==nEntry ){
15491548
zDate = db_text(0, "SELECT min(timestamp) FROM timeline /*scan*/");
15501549
timeline_submenu(&url, "Older", "b", zDate, "a");
15511550
free(zDate);
15521551
}
15531552
if( zBefore || (zAfter && n==nEntry) ){
15541553
zDate = db_text(0, "SELECT max(timestamp) FROM timeline /*scan*/");
15551554
timeline_submenu(&url, "Newer", "a", zDate, "b");
15561555
free(zDate);
1557
- }else if( tagid==0 && zUses==0 ){
1558
- timeline_y_submenu();
15591556
}
1560
- style_submenu_entry("n","Lines",1);
15611557
if( zType[0]=='a' || zType[0]=='c' ){
15621558
if( (tmFlags & TIMELINE_UNHIDE)==0 ){
15631559
timeline_submenu(&url, "Unhide", "unhide", "", 0);
15641560
}
15651561
}
1562
+ style_submenu_binary("v","With Files","Without Files");
1563
+ if( zUses==0 ) timeline_y_submenu();
1564
+ style_submenu_entry("n","Lines",1);
15661565
}
15671566
}
15681567
if( P("showsql") ){
15691568
@ <blockquote>%h(blob_sql_text(&sql))</blockquote>
15701569
}
15711570
--- src/timeline.c
+++ src/timeline.c
@@ -1542,29 +1542,28 @@
1542 }
1543 if( zSearch ){
1544 blob_appendf(&desc, " matching \"%h\"", zSearch);
1545 }
1546 if( g.perm.Hyperlink ){
1547 style_submenu_binary("v","With Files","Without Files");
1548 if( zAfter || n==nEntry ){
1549 zDate = db_text(0, "SELECT min(timestamp) FROM timeline /*scan*/");
1550 timeline_submenu(&url, "Older", "b", zDate, "a");
1551 free(zDate);
1552 }
1553 if( zBefore || (zAfter && n==nEntry) ){
1554 zDate = db_text(0, "SELECT max(timestamp) FROM timeline /*scan*/");
1555 timeline_submenu(&url, "Newer", "a", zDate, "b");
1556 free(zDate);
1557 }else if( tagid==0 && zUses==0 ){
1558 timeline_y_submenu();
1559 }
1560 style_submenu_entry("n","Lines",1);
1561 if( zType[0]=='a' || zType[0]=='c' ){
1562 if( (tmFlags & TIMELINE_UNHIDE)==0 ){
1563 timeline_submenu(&url, "Unhide", "unhide", "", 0);
1564 }
1565 }
 
 
 
1566 }
1567 }
1568 if( P("showsql") ){
1569 @ <blockquote>%h(blob_sql_text(&sql))</blockquote>
1570 }
1571
--- src/timeline.c
+++ src/timeline.c
@@ -1542,29 +1542,28 @@
1542 }
1543 if( zSearch ){
1544 blob_appendf(&desc, " matching \"%h\"", zSearch);
1545 }
1546 if( g.perm.Hyperlink ){
 
1547 if( zAfter || n==nEntry ){
1548 zDate = db_text(0, "SELECT min(timestamp) FROM timeline /*scan*/");
1549 timeline_submenu(&url, "Older", "b", zDate, "a");
1550 free(zDate);
1551 }
1552 if( zBefore || (zAfter && n==nEntry) ){
1553 zDate = db_text(0, "SELECT max(timestamp) FROM timeline /*scan*/");
1554 timeline_submenu(&url, "Newer", "a", zDate, "b");
1555 free(zDate);
 
 
1556 }
 
1557 if( zType[0]=='a' || zType[0]=='c' ){
1558 if( (tmFlags & TIMELINE_UNHIDE)==0 ){
1559 timeline_submenu(&url, "Unhide", "unhide", "", 0);
1560 }
1561 }
1562 style_submenu_binary("v","With Files","Without Files");
1563 if( zUses==0 ) timeline_y_submenu();
1564 style_submenu_entry("n","Lines",1);
1565 }
1566 }
1567 if( P("showsql") ){
1568 @ <blockquote>%h(blob_sql_text(&sql))</blockquote>
1569 }
1570

Keyboard Shortcuts

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