Fossil SCM
Fixes to form submenus on the timeline page.
Commit
e61dbb17cf36dbfdbcb73c35f94aa76e2aebc264
Parent
0738dcc6b070906…
1 file changed
+3
-4
+3
-4
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -1542,29 +1542,28 @@ | ||
| 1542 | 1542 | } |
| 1543 | 1543 | if( zSearch ){ |
| 1544 | 1544 | blob_appendf(&desc, " matching \"%h\"", zSearch); |
| 1545 | 1545 | } |
| 1546 | 1546 | if( g.perm.Hyperlink ){ |
| 1547 | - style_submenu_binary("v","With Files","Without Files"); | |
| 1548 | 1547 | if( zAfter || n==nEntry ){ |
| 1549 | 1548 | zDate = db_text(0, "SELECT min(timestamp) FROM timeline /*scan*/"); |
| 1550 | 1549 | timeline_submenu(&url, "Older", "b", zDate, "a"); |
| 1551 | 1550 | free(zDate); |
| 1552 | 1551 | } |
| 1553 | 1552 | if( zBefore || (zAfter && n==nEntry) ){ |
| 1554 | 1553 | zDate = db_text(0, "SELECT max(timestamp) FROM timeline /*scan*/"); |
| 1555 | 1554 | timeline_submenu(&url, "Newer", "a", zDate, "b"); |
| 1556 | 1555 | free(zDate); |
| 1557 | - }else if( tagid==0 && zUses==0 ){ | |
| 1558 | - timeline_y_submenu(); | |
| 1559 | 1556 | } |
| 1560 | - style_submenu_entry("n","Lines",1); | |
| 1561 | 1557 | if( zType[0]=='a' || zType[0]=='c' ){ |
| 1562 | 1558 | if( (tmFlags & TIMELINE_UNHIDE)==0 ){ |
| 1563 | 1559 | timeline_submenu(&url, "Unhide", "unhide", "", 0); |
| 1564 | 1560 | } |
| 1565 | 1561 | } |
| 1562 | + style_submenu_binary("v","With Files","Without Files"); | |
| 1563 | + if( zUses==0 ) timeline_y_submenu(); | |
| 1564 | + style_submenu_entry("n","Lines",1); | |
| 1566 | 1565 | } |
| 1567 | 1566 | } |
| 1568 | 1567 | if( P("showsql") ){ |
| 1569 | 1568 | @ <blockquote>%h(blob_sql_text(&sql))</blockquote> |
| 1570 | 1569 | } |
| 1571 | 1570 |
| --- 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 |