Fossil SCM

Change the timeline parameter for file details from "detail" to "filechng". Add default CSS elements.

drh 2011-03-30 23:55 trunk
Commit 53e8ad527dc2ccda56cdb006c9f42b873f6c1a9e
2 files changed +5 +7 -5
--- src/style.c
+++ src/style.c
@@ -739,10 +739,15 @@
739739
},
740740
{ "span.brokenlink",
741741
"a broken hyperlink",
742742
@ color: red;
743743
},
744
+ { "ul.filelist",
745
+ "List of files in a timeline",
746
+ @ margin-top: 3px;
747
+ @ line-height: 100%;
748
+ },
744749
{ 0,
745750
0,
746751
0
747752
}
748753
};
749754
--- 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 @@
363363
while( db_step(&fchngQuery)==SQLITE_ROW ){
364364
const char *zFilename = db_column_text(&fchngQuery, 2);
365365
int isNew = db_column_int(&fchngQuery, 0);
366366
int isDel = db_column_int(&fchngQuery, 1);
367367
if( !inUl ){
368
- @ <ul>
368
+ @ <ul class="filelist">
369369
inUl = 1;
370370
}
371371
if( isNew ){
372372
@ <li> %h(zFilename) (new file)</li>
373373
}else if( isDel ){
@@ -777,11 +777,11 @@
777777
** u=USER only if belonging to this user
778778
** y=TYPE 'ci', 'w', 't', 'e'
779779
** s=TEXT string search (comment and brief)
780780
** ng Suppress the graph if present
781781
** nd Suppress "divider" lines
782
-** detail Show details of files changed
782
+** filechng Show details of files changed
783783
** f=RID Show family (immediate parents and children) of RID
784784
** from=RID Path from...
785785
** to=RID ... to this
786786
** nomerge ... avoid merge links on the path
787787
**
@@ -840,22 +840,24 @@
840840
tmFlags = TIMELINE_GRAPH;
841841
}
842842
if( P("ng")!=0 || zSearch!=0 ){
843843
tmFlags &= ~TIMELINE_GRAPH;
844844
}
845
- if( P("detail")!=0 ){
846
- tmFlags |= TIMELINE_FCHANGES;
847
- }
848845
849846
style_header("Timeline");
850847
login_anonymous_available();
851848
timeline_temp_table();
852849
blob_zero(&sql);
853850
blob_zero(&desc);
854851
blob_append(&sql, "INSERT OR IGNORE INTO timeline ", -1);
855852
blob_append(&sql, timeline_query_for_www(), -1);
856853
url_initialize(&url, "timeline");
854
+ if( P("filechng")!=0 ){
855
+ tmFlags |= TIMELINE_FCHANGES;
856
+ url_add_parameter(&url, "filechng", 0);
857
+
858
+ }
857859
if( !useDividers ) url_add_parameter(&url, "nd", 0);
858860
if( ((from_rid && to_rid) || (me_rid && you_rid)) && g.okRead ){
859861
/* If from= and to= are present, display all nodes on a path connecting
860862
** the two */
861863
PathNode *p = 0;
862864
--- 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

Keyboard Shortcuts

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