Fossil SCM

Highlight a ticket's change that corresponds to the URL's fragment of the <tt>/tkthistory</tt> page.

george 2022-10-16 00:09 deltify-tkt-blobs
Commit 7afd4db3d3ed7d83fdc76b6a627a1650bfb1aaa8eb47e6621cd806c25c13ef64
2 files changed +6 +8 -8
--- src/default.css
+++ src/default.css
@@ -706,10 +706,16 @@
706706
font-weight: bold;
707707
}
708708
body.tkt div.content li > table.udiff {
709709
margin-left: 1.5em;
710710
margin-top: 0.5em;
711
+}
712
+body.tkt div.content ol.tkt-changes > li:target > p > span {
713
+ border-bottom: 3px solid gold;
714
+}
715
+body.tkt div.content ol.tkt-changes > li:target > ol {
716
+ border-left: 1px solid gold;
711717
}
712718
713719
span.modpending {
714720
color: #b03800;
715721
font-style: italic;
716722
--- src/default.css
+++ src/default.css
@@ -706,10 +706,16 @@
706 font-weight: bold;
707 }
708 body.tkt div.content li > table.udiff {
709 margin-left: 1.5em;
710 margin-top: 0.5em;
 
 
 
 
 
 
711 }
712
713 span.modpending {
714 color: #b03800;
715 font-style: italic;
716
--- src/default.css
+++ src/default.css
@@ -706,10 +706,16 @@
706 font-weight: bold;
707 }
708 body.tkt div.content li > table.udiff {
709 margin-left: 1.5em;
710 margin-top: 0.5em;
711 }
712 body.tkt div.content ol.tkt-changes > li:target > p > span {
713 border-bottom: 3px solid gold;
714 }
715 body.tkt div.content ol.tkt-changes > li:target > ol {
716 border-left: 1px solid gold;
717 }
718
719 span.modpending {
720 color: #b03800;
721 font-style: italic;
722
+8 -8
--- src/tkt.c
+++ src/tkt.c
@@ -1303,33 +1303,33 @@
13031303
const char *zDate = db_column_text(&q, 0);
13041304
int rid = db_column_int(&q, 1);
13051305
const char *zChngUuid = db_column_text(&q, 2);
13061306
const char *zFile = db_column_text(&q, 4);
13071307
if( nChng==0 ){
1308
- @ <ol>
1308
+ @ <ol class="tkt-changes">
13091309
}
13101310
if( zFile!=0 ){
13111311
const char *zSrc = db_column_text(&q, 3);
13121312
const char *zUser = db_column_text(&q, 5);
1313
+ @
1314
+ @ <li id="%S(zChngUuid)"><p><span>
13131315
if( zSrc==0 || zSrc[0]==0 ){
1314
- @
1315
- @ <li id="%S(zChngUuid)"><p>Delete attachment "%h(zFile)"
1316
+ @ Delete attachment "%h(zFile)"
13161317
}else{
1317
- @
1318
- @ <li id="%S(zChngUuid)"><p>Add attachment
1318
+ @ Add attachment
13191319
@ "%z(href("%R/artifact/%!S",zSrc))%s(zFile)</a>"
13201320
}
1321
- @ [%z(href("%R/artifact/%!S",zChngUuid))%S(zChngUuid)</a>]
1321
+ @ [%z(href("%R/artifact/%!S",zChngUuid))%S(zChngUuid)</a>]</span>
13221322
@ (rid %d(rid)) by
13231323
hyperlink_to_user(zUser,zDate," on");
13241324
hyperlink_to_date(zDate, ".</p>");
13251325
}else{
13261326
pTicket = manifest_get(rid, CFTYPE_TICKET, 0);
13271327
if( pTicket ){
13281328
@
1329
- @ <li id="%S(zChngUuid)"><p>Ticket change
1330
- @ [%z(href("%R/artifact/%!S",zChngUuid))%S(zChngUuid)</a>]
1329
+ @ <li id="%S(zChngUuid)"><p><span>Ticket change
1330
+ @ [%z(href("%R/artifact/%!S",zChngUuid))%S(zChngUuid)</a>]</span>
13311331
@ (rid %d(rid)) by
13321332
hyperlink_to_user(pTicket->zUser,zDate," on");
13331333
hyperlink_to_date(zDate, ":");
13341334
@ </p>
13351335
if( P("raw")!=0 ){
13361336
--- src/tkt.c
+++ src/tkt.c
@@ -1303,33 +1303,33 @@
1303 const char *zDate = db_column_text(&q, 0);
1304 int rid = db_column_int(&q, 1);
1305 const char *zChngUuid = db_column_text(&q, 2);
1306 const char *zFile = db_column_text(&q, 4);
1307 if( nChng==0 ){
1308 @ <ol>
1309 }
1310 if( zFile!=0 ){
1311 const char *zSrc = db_column_text(&q, 3);
1312 const char *zUser = db_column_text(&q, 5);
 
 
1313 if( zSrc==0 || zSrc[0]==0 ){
1314 @
1315 @ <li id="%S(zChngUuid)"><p>Delete attachment "%h(zFile)"
1316 }else{
1317 @
1318 @ <li id="%S(zChngUuid)"><p>Add attachment
1319 @ "%z(href("%R/artifact/%!S",zSrc))%s(zFile)</a>"
1320 }
1321 @ [%z(href("%R/artifact/%!S",zChngUuid))%S(zChngUuid)</a>]
1322 @ (rid %d(rid)) by
1323 hyperlink_to_user(zUser,zDate," on");
1324 hyperlink_to_date(zDate, ".</p>");
1325 }else{
1326 pTicket = manifest_get(rid, CFTYPE_TICKET, 0);
1327 if( pTicket ){
1328 @
1329 @ <li id="%S(zChngUuid)"><p>Ticket change
1330 @ [%z(href("%R/artifact/%!S",zChngUuid))%S(zChngUuid)</a>]
1331 @ (rid %d(rid)) by
1332 hyperlink_to_user(pTicket->zUser,zDate," on");
1333 hyperlink_to_date(zDate, ":");
1334 @ </p>
1335 if( P("raw")!=0 ){
1336
--- src/tkt.c
+++ src/tkt.c
@@ -1303,33 +1303,33 @@
1303 const char *zDate = db_column_text(&q, 0);
1304 int rid = db_column_int(&q, 1);
1305 const char *zChngUuid = db_column_text(&q, 2);
1306 const char *zFile = db_column_text(&q, 4);
1307 if( nChng==0 ){
1308 @ <ol class="tkt-changes">
1309 }
1310 if( zFile!=0 ){
1311 const char *zSrc = db_column_text(&q, 3);
1312 const char *zUser = db_column_text(&q, 5);
1313 @
1314 @ <li id="%S(zChngUuid)"><p><span>
1315 if( zSrc==0 || zSrc[0]==0 ){
1316 @ Delete attachment "%h(zFile)"
 
1317 }else{
1318 @ Add attachment
 
1319 @ "%z(href("%R/artifact/%!S",zSrc))%s(zFile)</a>"
1320 }
1321 @ [%z(href("%R/artifact/%!S",zChngUuid))%S(zChngUuid)</a>]</span>
1322 @ (rid %d(rid)) by
1323 hyperlink_to_user(zUser,zDate," on");
1324 hyperlink_to_date(zDate, ".</p>");
1325 }else{
1326 pTicket = manifest_get(rid, CFTYPE_TICKET, 0);
1327 if( pTicket ){
1328 @
1329 @ <li id="%S(zChngUuid)"><p><span>Ticket change
1330 @ [%z(href("%R/artifact/%!S",zChngUuid))%S(zChngUuid)</a>]</span>
1331 @ (rid %d(rid)) by
1332 hyperlink_to_user(pTicket->zUser,zDate," on");
1333 hyperlink_to_date(zDate, ":");
1334 @ </p>
1335 if( P("raw")!=0 ){
1336

Keyboard Shortcuts

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