Fossil SCM
Add a comment to the tree-view to explain that file ages are relative to the check-in time.
Commit
0fb353c10ddddcdaa9ab0d2fbe2b52991b51ddce3ea7736d1b9239c959316695
Parent
24c71dfb1ea93f0…
1 file changed
+7
-3
+7
-3
| --- src/browse.c | ||
| +++ src/browse.c | ||
| @@ -845,17 +845,17 @@ | ||
| 845 | 845 | @ <h2>%s(zObjType) in the %z(href("%R/info?name=tip"))latest check-in</a> |
| 846 | 846 | }else if( isBranchCI ){ |
| 847 | 847 | @ <h2>%s(zObjType) in the %z(href("%R/info?name=%T",zCI))latest check-in\ |
| 848 | 848 | @ </a> for branch %z(href("%R/timeline?r=%T",zCI))%h(zCI)</a> |
| 849 | 849 | if( blob_size(&dirname) ){ |
| 850 | - @ and %s(blob_str(&dirname))</h2> | |
| 850 | + @ and %s(blob_str(&dirname)) | |
| 851 | 851 | } |
| 852 | 852 | }else if( zCI ){ |
| 853 | 853 | @ <h2>%s(zObjType) for check-in \ |
| 854 | - @ %z(href("%R/info?name=%T",zCI))%h(zCI)</a></h2> | |
| 854 | + @ %z(href("%R/info?name=%T",zCI))%h(zCI)</a> | |
| 855 | 855 | if( blob_size(&dirname) ){ |
| 856 | - @ and %s(blob_str(&dirname))</h2> | |
| 856 | + @ and %s(blob_str(&dirname)) | |
| 857 | 857 | } |
| 858 | 858 | }else{ |
| 859 | 859 | int n = db_int(0, "SELECT count(*) FROM plink"); |
| 860 | 860 | @ <h2>%s(zObjType) from all %d(n) check-ins %s(blob_str(&dirname)) |
| 861 | 861 | } |
| @@ -863,10 +863,14 @@ | ||
| 863 | 863 | @ sorted by modification time</h2> |
| 864 | 864 | }else{ |
| 865 | 865 | @ sorted by filename</h2> |
| 866 | 866 | } |
| 867 | 867 | |
| 868 | + if( zNow ){ | |
| 869 | + @ <p>File ages are expressed relative to the check-in time of | |
| 870 | + @ %z(href("%R/timeline?c=%t",zNow))%s(zNow)</a>.</p> | |
| 871 | + } | |
| 868 | 872 | |
| 869 | 873 | /* Generate tree of lists. |
| 870 | 874 | ** |
| 871 | 875 | ** Each file and directory is a list element: <li>. Files have class=file |
| 872 | 876 | ** and if the filename as the suffix "xyz" the file also has class=file-xyz. |
| 873 | 877 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -845,17 +845,17 @@ | |
| 845 | @ <h2>%s(zObjType) in the %z(href("%R/info?name=tip"))latest check-in</a> |
| 846 | }else if( isBranchCI ){ |
| 847 | @ <h2>%s(zObjType) in the %z(href("%R/info?name=%T",zCI))latest check-in\ |
| 848 | @ </a> for branch %z(href("%R/timeline?r=%T",zCI))%h(zCI)</a> |
| 849 | if( blob_size(&dirname) ){ |
| 850 | @ and %s(blob_str(&dirname))</h2> |
| 851 | } |
| 852 | }else if( zCI ){ |
| 853 | @ <h2>%s(zObjType) for check-in \ |
| 854 | @ %z(href("%R/info?name=%T",zCI))%h(zCI)</a></h2> |
| 855 | if( blob_size(&dirname) ){ |
| 856 | @ and %s(blob_str(&dirname))</h2> |
| 857 | } |
| 858 | }else{ |
| 859 | int n = db_int(0, "SELECT count(*) FROM plink"); |
| 860 | @ <h2>%s(zObjType) from all %d(n) check-ins %s(blob_str(&dirname)) |
| 861 | } |
| @@ -863,10 +863,14 @@ | |
| 863 | @ sorted by modification time</h2> |
| 864 | }else{ |
| 865 | @ sorted by filename</h2> |
| 866 | } |
| 867 | |
| 868 | |
| 869 | /* Generate tree of lists. |
| 870 | ** |
| 871 | ** Each file and directory is a list element: <li>. Files have class=file |
| 872 | ** and if the filename as the suffix "xyz" the file also has class=file-xyz. |
| 873 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -845,17 +845,17 @@ | |
| 845 | @ <h2>%s(zObjType) in the %z(href("%R/info?name=tip"))latest check-in</a> |
| 846 | }else if( isBranchCI ){ |
| 847 | @ <h2>%s(zObjType) in the %z(href("%R/info?name=%T",zCI))latest check-in\ |
| 848 | @ </a> for branch %z(href("%R/timeline?r=%T",zCI))%h(zCI)</a> |
| 849 | if( blob_size(&dirname) ){ |
| 850 | @ and %s(blob_str(&dirname)) |
| 851 | } |
| 852 | }else if( zCI ){ |
| 853 | @ <h2>%s(zObjType) for check-in \ |
| 854 | @ %z(href("%R/info?name=%T",zCI))%h(zCI)</a> |
| 855 | if( blob_size(&dirname) ){ |
| 856 | @ and %s(blob_str(&dirname)) |
| 857 | } |
| 858 | }else{ |
| 859 | int n = db_int(0, "SELECT count(*) FROM plink"); |
| 860 | @ <h2>%s(zObjType) from all %d(n) check-ins %s(blob_str(&dirname)) |
| 861 | } |
| @@ -863,10 +863,14 @@ | |
| 863 | @ sorted by modification time</h2> |
| 864 | }else{ |
| 865 | @ sorted by filename</h2> |
| 866 | } |
| 867 | |
| 868 | if( zNow ){ |
| 869 | @ <p>File ages are expressed relative to the check-in time of |
| 870 | @ %z(href("%R/timeline?c=%t",zNow))%s(zNow)</a>.</p> |
| 871 | } |
| 872 | |
| 873 | /* Generate tree of lists. |
| 874 | ** |
| 875 | ** Each file and directory is a list element: <li>. Files have class=file |
| 876 | ** and if the filename as the suffix "xyz" the file also has class=file-xyz. |
| 877 |