Fossil SCM

Use a target= field on the hyperlink of the annotation web page.

drh 2011-04-15 15:36 trunk
Commit 0e477a48e597826c978a7f029f8f00e6eff57d28
1 file changed +4 -2
+4 -2
--- src/diff.c
+++ src/diff.c
@@ -775,12 +775,14 @@
775775
int pid = db_column_int(&q, 0);
776776
const char *zUuid = db_column_text(&q, 1);
777777
const char *zDate = db_column_text(&q, 2);
778778
const char *zUser = db_column_text(&q, 3);
779779
if( webLabel ){
780
- zLabel = mprintf("<a href='%s/info/%s'>%.10s</a> %s %9.9s",
781
- g.zTop, zUuid, zUuid, zDate, zUser);
780
+ zLabel = mprintf(
781
+ "<a href='%s/info/%s' target='infowindow'>%.10s</a> %s %9.9s",
782
+ g.zTop, zUuid, zUuid, zDate, zUser
783
+ );
782784
}else{
783785
zLabel = mprintf("%.10s %s %9.9s", zUuid, zDate, zUser);
784786
}
785787
content_get(pid, &step);
786788
annotation_step(p, &step, zLabel);
787789
--- src/diff.c
+++ src/diff.c
@@ -775,12 +775,14 @@
775 int pid = db_column_int(&q, 0);
776 const char *zUuid = db_column_text(&q, 1);
777 const char *zDate = db_column_text(&q, 2);
778 const char *zUser = db_column_text(&q, 3);
779 if( webLabel ){
780 zLabel = mprintf("<a href='%s/info/%s'>%.10s</a> %s %9.9s",
781 g.zTop, zUuid, zUuid, zDate, zUser);
 
 
782 }else{
783 zLabel = mprintf("%.10s %s %9.9s", zUuid, zDate, zUser);
784 }
785 content_get(pid, &step);
786 annotation_step(p, &step, zLabel);
787
--- src/diff.c
+++ src/diff.c
@@ -775,12 +775,14 @@
775 int pid = db_column_int(&q, 0);
776 const char *zUuid = db_column_text(&q, 1);
777 const char *zDate = db_column_text(&q, 2);
778 const char *zUser = db_column_text(&q, 3);
779 if( webLabel ){
780 zLabel = mprintf(
781 "<a href='%s/info/%s' target='infowindow'>%.10s</a> %s %9.9s",
782 g.zTop, zUuid, zUuid, zDate, zUser
783 );
784 }else{
785 zLabel = mprintf("%.10s %s %9.9s", zUuid, zDate, zUser);
786 }
787 content_get(pid, &step);
788 annotation_step(p, &step, zLabel);
789

Keyboard Shortcuts

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