Fossil SCM
Change the timeline parameter for file details from "detail" to "filechng". Add default CSS elements.
Commit
53e8ad527dc2ccda56cdb006c9f42b873f6c1a9e
Parent
bde16926b023e36…
2 files changed
+5
+7
-5
+5
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -739,10 +739,15 @@ | ||
| 739 | 739 | }, |
| 740 | 740 | { "span.brokenlink", |
| 741 | 741 | "a broken hyperlink", |
| 742 | 742 | @ color: red; |
| 743 | 743 | }, |
| 744 | + { "ul.filelist", | |
| 745 | + "List of files in a timeline", | |
| 746 | + @ margin-top: 3px; | |
| 747 | + @ line-height: 100%; | |
| 748 | + }, | |
| 744 | 749 | { 0, |
| 745 | 750 | 0, |
| 746 | 751 | 0 |
| 747 | 752 | } |
| 748 | 753 | }; |
| 749 | 754 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -739,10 +739,15 @@ | |
| 739 | }, |
| 740 | { "span.brokenlink", |
| 741 | "a broken hyperlink", |
| 742 | @ color: red; |
| 743 | }, |
| 744 | { 0, |
| 745 | 0, |
| 746 | 0 |
| 747 | } |
| 748 | }; |
| 749 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -739,10 +739,15 @@ | |
| 739 | }, |
| 740 | { "span.brokenlink", |
| 741 | "a broken hyperlink", |
| 742 | @ color: red; |
| 743 | }, |
| 744 | { "ul.filelist", |
| 745 | "List of files in a timeline", |
| 746 | @ margin-top: 3px; |
| 747 | @ line-height: 100%; |
| 748 | }, |
| 749 | { 0, |
| 750 | 0, |
| 751 | 0 |
| 752 | } |
| 753 | }; |
| 754 |
+7
-5
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -363,11 +363,11 @@ | ||
| 363 | 363 | while( db_step(&fchngQuery)==SQLITE_ROW ){ |
| 364 | 364 | const char *zFilename = db_column_text(&fchngQuery, 2); |
| 365 | 365 | int isNew = db_column_int(&fchngQuery, 0); |
| 366 | 366 | int isDel = db_column_int(&fchngQuery, 1); |
| 367 | 367 | if( !inUl ){ |
| 368 | - @ <ul> | |
| 368 | + @ <ul class="filelist"> | |
| 369 | 369 | inUl = 1; |
| 370 | 370 | } |
| 371 | 371 | if( isNew ){ |
| 372 | 372 | @ <li> %h(zFilename) (new file)</li> |
| 373 | 373 | }else if( isDel ){ |
| @@ -777,11 +777,11 @@ | ||
| 777 | 777 | ** u=USER only if belonging to this user |
| 778 | 778 | ** y=TYPE 'ci', 'w', 't', 'e' |
| 779 | 779 | ** s=TEXT string search (comment and brief) |
| 780 | 780 | ** ng Suppress the graph if present |
| 781 | 781 | ** nd Suppress "divider" lines |
| 782 | -** detail Show details of files changed | |
| 782 | +** filechng Show details of files changed | |
| 783 | 783 | ** f=RID Show family (immediate parents and children) of RID |
| 784 | 784 | ** from=RID Path from... |
| 785 | 785 | ** to=RID ... to this |
| 786 | 786 | ** nomerge ... avoid merge links on the path |
| 787 | 787 | ** |
| @@ -840,22 +840,24 @@ | ||
| 840 | 840 | tmFlags = TIMELINE_GRAPH; |
| 841 | 841 | } |
| 842 | 842 | if( P("ng")!=0 || zSearch!=0 ){ |
| 843 | 843 | tmFlags &= ~TIMELINE_GRAPH; |
| 844 | 844 | } |
| 845 | - if( P("detail")!=0 ){ | |
| 846 | - tmFlags |= TIMELINE_FCHANGES; | |
| 847 | - } | |
| 848 | 845 | |
| 849 | 846 | style_header("Timeline"); |
| 850 | 847 | login_anonymous_available(); |
| 851 | 848 | timeline_temp_table(); |
| 852 | 849 | blob_zero(&sql); |
| 853 | 850 | blob_zero(&desc); |
| 854 | 851 | blob_append(&sql, "INSERT OR IGNORE INTO timeline ", -1); |
| 855 | 852 | blob_append(&sql, timeline_query_for_www(), -1); |
| 856 | 853 | url_initialize(&url, "timeline"); |
| 854 | + if( P("filechng")!=0 ){ | |
| 855 | + tmFlags |= TIMELINE_FCHANGES; | |
| 856 | + url_add_parameter(&url, "filechng", 0); | |
| 857 | + | |
| 858 | + } | |
| 857 | 859 | if( !useDividers ) url_add_parameter(&url, "nd", 0); |
| 858 | 860 | if( ((from_rid && to_rid) || (me_rid && you_rid)) && g.okRead ){ |
| 859 | 861 | /* If from= and to= are present, display all nodes on a path connecting |
| 860 | 862 | ** the two */ |
| 861 | 863 | PathNode *p = 0; |
| 862 | 864 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -363,11 +363,11 @@ | |
| 363 | while( db_step(&fchngQuery)==SQLITE_ROW ){ |
| 364 | const char *zFilename = db_column_text(&fchngQuery, 2); |
| 365 | int isNew = db_column_int(&fchngQuery, 0); |
| 366 | int isDel = db_column_int(&fchngQuery, 1); |
| 367 | if( !inUl ){ |
| 368 | @ <ul> |
| 369 | inUl = 1; |
| 370 | } |
| 371 | if( isNew ){ |
| 372 | @ <li> %h(zFilename) (new file)</li> |
| 373 | }else if( isDel ){ |
| @@ -777,11 +777,11 @@ | |
| 777 | ** u=USER only if belonging to this user |
| 778 | ** y=TYPE 'ci', 'w', 't', 'e' |
| 779 | ** s=TEXT string search (comment and brief) |
| 780 | ** ng Suppress the graph if present |
| 781 | ** nd Suppress "divider" lines |
| 782 | ** detail Show details of files changed |
| 783 | ** f=RID Show family (immediate parents and children) of RID |
| 784 | ** from=RID Path from... |
| 785 | ** to=RID ... to this |
| 786 | ** nomerge ... avoid merge links on the path |
| 787 | ** |
| @@ -840,22 +840,24 @@ | |
| 840 | tmFlags = TIMELINE_GRAPH; |
| 841 | } |
| 842 | if( P("ng")!=0 || zSearch!=0 ){ |
| 843 | tmFlags &= ~TIMELINE_GRAPH; |
| 844 | } |
| 845 | if( P("detail")!=0 ){ |
| 846 | tmFlags |= TIMELINE_FCHANGES; |
| 847 | } |
| 848 | |
| 849 | style_header("Timeline"); |
| 850 | login_anonymous_available(); |
| 851 | timeline_temp_table(); |
| 852 | blob_zero(&sql); |
| 853 | blob_zero(&desc); |
| 854 | blob_append(&sql, "INSERT OR IGNORE INTO timeline ", -1); |
| 855 | blob_append(&sql, timeline_query_for_www(), -1); |
| 856 | url_initialize(&url, "timeline"); |
| 857 | if( !useDividers ) url_add_parameter(&url, "nd", 0); |
| 858 | if( ((from_rid && to_rid) || (me_rid && you_rid)) && g.okRead ){ |
| 859 | /* If from= and to= are present, display all nodes on a path connecting |
| 860 | ** the two */ |
| 861 | PathNode *p = 0; |
| 862 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -363,11 +363,11 @@ | |
| 363 | while( db_step(&fchngQuery)==SQLITE_ROW ){ |
| 364 | const char *zFilename = db_column_text(&fchngQuery, 2); |
| 365 | int isNew = db_column_int(&fchngQuery, 0); |
| 366 | int isDel = db_column_int(&fchngQuery, 1); |
| 367 | if( !inUl ){ |
| 368 | @ <ul class="filelist"> |
| 369 | inUl = 1; |
| 370 | } |
| 371 | if( isNew ){ |
| 372 | @ <li> %h(zFilename) (new file)</li> |
| 373 | }else if( isDel ){ |
| @@ -777,11 +777,11 @@ | |
| 777 | ** u=USER only if belonging to this user |
| 778 | ** y=TYPE 'ci', 'w', 't', 'e' |
| 779 | ** s=TEXT string search (comment and brief) |
| 780 | ** ng Suppress the graph if present |
| 781 | ** nd Suppress "divider" lines |
| 782 | ** filechng Show details of files changed |
| 783 | ** f=RID Show family (immediate parents and children) of RID |
| 784 | ** from=RID Path from... |
| 785 | ** to=RID ... to this |
| 786 | ** nomerge ... avoid merge links on the path |
| 787 | ** |
| @@ -840,22 +840,24 @@ | |
| 840 | tmFlags = TIMELINE_GRAPH; |
| 841 | } |
| 842 | if( P("ng")!=0 || zSearch!=0 ){ |
| 843 | tmFlags &= ~TIMELINE_GRAPH; |
| 844 | } |
| 845 | |
| 846 | style_header("Timeline"); |
| 847 | login_anonymous_available(); |
| 848 | timeline_temp_table(); |
| 849 | blob_zero(&sql); |
| 850 | blob_zero(&desc); |
| 851 | blob_append(&sql, "INSERT OR IGNORE INTO timeline ", -1); |
| 852 | blob_append(&sql, timeline_query_for_www(), -1); |
| 853 | url_initialize(&url, "timeline"); |
| 854 | if( P("filechng")!=0 ){ |
| 855 | tmFlags |= TIMELINE_FCHANGES; |
| 856 | url_add_parameter(&url, "filechng", 0); |
| 857 | |
| 858 | } |
| 859 | if( !useDividers ) url_add_parameter(&url, "nd", 0); |
| 860 | if( ((from_rid && to_rid) || (me_rid && you_rid)) && g.okRead ){ |
| 861 | /* If from= and to= are present, display all nodes on a path connecting |
| 862 | ** the two */ |
| 863 | PathNode *p = 0; |
| 864 |