Fossil SCM
Highlight a ticket's change that corresponds to the URL's fragment of the <tt>/tkthistory</tt> page.
Commit
7afd4db3d3ed7d83fdc76b6a627a1650bfb1aaa8eb47e6621cd806c25c13ef64
Parent
4d5ded5eea57c70…
2 files changed
+6
+8
-8
+6
| --- src/default.css | ||
| +++ src/default.css | ||
| @@ -706,10 +706,16 @@ | ||
| 706 | 706 | font-weight: bold; |
| 707 | 707 | } |
| 708 | 708 | body.tkt div.content li > table.udiff { |
| 709 | 709 | margin-left: 1.5em; |
| 710 | 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; | |
| 711 | 717 | } |
| 712 | 718 | |
| 713 | 719 | span.modpending { |
| 714 | 720 | color: #b03800; |
| 715 | 721 | font-style: italic; |
| 716 | 722 |
| --- 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 @@ | ||
| 1303 | 1303 | const char *zDate = db_column_text(&q, 0); |
| 1304 | 1304 | int rid = db_column_int(&q, 1); |
| 1305 | 1305 | const char *zChngUuid = db_column_text(&q, 2); |
| 1306 | 1306 | const char *zFile = db_column_text(&q, 4); |
| 1307 | 1307 | if( nChng==0 ){ |
| 1308 | - @ <ol> | |
| 1308 | + @ <ol class="tkt-changes"> | |
| 1309 | 1309 | } |
| 1310 | 1310 | if( zFile!=0 ){ |
| 1311 | 1311 | const char *zSrc = db_column_text(&q, 3); |
| 1312 | 1312 | const char *zUser = db_column_text(&q, 5); |
| 1313 | + @ | |
| 1314 | + @ <li id="%S(zChngUuid)"><p><span> | |
| 1313 | 1315 | if( zSrc==0 || zSrc[0]==0 ){ |
| 1314 | - @ | |
| 1315 | - @ <li id="%S(zChngUuid)"><p>Delete attachment "%h(zFile)" | |
| 1316 | + @ Delete attachment "%h(zFile)" | |
| 1316 | 1317 | }else{ |
| 1317 | - @ | |
| 1318 | - @ <li id="%S(zChngUuid)"><p>Add attachment | |
| 1318 | + @ Add attachment | |
| 1319 | 1319 | @ "%z(href("%R/artifact/%!S",zSrc))%s(zFile)</a>" |
| 1320 | 1320 | } |
| 1321 | - @ [%z(href("%R/artifact/%!S",zChngUuid))%S(zChngUuid)</a>] | |
| 1321 | + @ [%z(href("%R/artifact/%!S",zChngUuid))%S(zChngUuid)</a>]</span> | |
| 1322 | 1322 | @ (rid %d(rid)) by |
| 1323 | 1323 | hyperlink_to_user(zUser,zDate," on"); |
| 1324 | 1324 | hyperlink_to_date(zDate, ".</p>"); |
| 1325 | 1325 | }else{ |
| 1326 | 1326 | pTicket = manifest_get(rid, CFTYPE_TICKET, 0); |
| 1327 | 1327 | if( pTicket ){ |
| 1328 | 1328 | @ |
| 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> | |
| 1331 | 1331 | @ (rid %d(rid)) by |
| 1332 | 1332 | hyperlink_to_user(pTicket->zUser,zDate," on"); |
| 1333 | 1333 | hyperlink_to_date(zDate, ":"); |
| 1334 | 1334 | @ </p> |
| 1335 | 1335 | if( P("raw")!=0 ){ |
| 1336 | 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> |
| 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 |