| | @@ -1636,10 +1636,12 @@ |
| 1636 | 1636 | ** c=TIMEORTAG Show events that happen "circa" TIMEORTAG |
| 1637 | 1637 | ** cf=FILEHASH Show events around the time of the first use of |
| 1638 | 1638 | ** the file with FILEHASH |
| 1639 | 1639 | ** m=TIMEORTAG Highlight the event at TIMEORTAG |
| 1640 | 1640 | ** n=COUNT Maximum number of events. "all" for no limit |
| 1641 | +** n1=COUNT Same as "n" but does not set the user-preference cookie |
| 1642 | +** Use "n1=COUNT" for a one-time display |
| 1641 | 1643 | ** p=CHECKIN Parents and ancestors of CHECKIN |
| 1642 | 1644 | ** bt=PRIOR ... going back to PRIOR |
| 1643 | 1645 | ** d=CHECKIN Children and descendants of CHECKIN |
| 1644 | 1646 | ** dp=CHECKIN The same as 'd=CHECKIN&p=CHECKIN' |
| 1645 | 1647 | ** t=TAG Show only check-ins with the given TAG |
| | @@ -1757,14 +1759,26 @@ |
| 1757 | 1759 | |
| 1758 | 1760 | url_initialize(&url, "timeline"); |
| 1759 | 1761 | cgi_query_parameters_to_url(&url); |
| 1760 | 1762 | |
| 1761 | 1763 | /* Set number of rows to display */ |
| 1762 | | - haveParameterN = P("n")!=0; |
| 1763 | | - cookie_read_parameter("n","n"); |
| 1764 | 1764 | z = P("n"); |
| 1765 | | - if( z==0 ) z = db_get("timeline-default-length",0); |
| 1765 | + if( z!=0 ){ |
| 1766 | + haveParameterN = 1; |
| 1767 | + }else{ |
| 1768 | + z = P("n1"); |
| 1769 | + if( z ){ |
| 1770 | + haveParameterN = 1; |
| 1771 | + }else{ |
| 1772 | + haveParameterN = 0; |
| 1773 | + cookie_read_parameter("n","n"); |
| 1774 | + z = P("n"); |
| 1775 | + if( z==0 ){ |
| 1776 | + z = db_get("timeline-default-length",0); |
| 1777 | + } |
| 1778 | + } |
| 1779 | + } |
| 1766 | 1780 | if( z ){ |
| 1767 | 1781 | if( fossil_strcmp(z,"all")==0 ){ |
| 1768 | 1782 | nEntry = 0; |
| 1769 | 1783 | }else{ |
| 1770 | 1784 | nEntry = atoi(z); |
| | @@ -1921,10 +1935,11 @@ |
| 1921 | 1935 | zUses = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", ufid); |
| 1922 | 1936 | db_multi_exec("CREATE TEMP TABLE usesfile(rid INTEGER PRIMARY KEY)"); |
| 1923 | 1937 | compute_uses_file("usesfile", ufid, 0); |
| 1924 | 1938 | zType = "ci"; |
| 1925 | 1939 | disableY = 1; |
| 1940 | + if( !haveParameterN ) nEntry = 0; |
| 1926 | 1941 | }else{ |
| 1927 | 1942 | zUses = 0; |
| 1928 | 1943 | } |
| 1929 | 1944 | } |
| 1930 | 1945 | if( renameOnly ){ |
| 1931 | 1946 | |