Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From b2049d643b6a3a3a To 0dd5451d7f531a68
2022-09-20
| ||
14:13 |
On the /tkthistory page supply each ticket change item
with a corresponding id attribute and make the 'History' button
within a submenu of a /tinfo page to link back
to that particular element on the /tkthistory page.
...
(check-in: 4bb91f38 user: george tags: deltify-tkt-blobs)
| |
13:56 | Minor optimization and refactoring. ... (check-in: b2049d64 user: george tags: deltify-tkt-blobs) | |
2022-09-15
| ||
13:40 |
Improve /tkthistory page: render selected ticket fields as unified diffs.
...
(check-in: b75a9d0f user: george tags: deltify-tkt-blobs)
| |
2022-09-14
| ||
13:12 |
Remove redundant PRE tags on the /wdiff pages.
...
(check-in: 0dd5451d user: george tags: deltify-tkt-blobs)
| |
2022-08-29
| ||
14:27 | Add a missing closing LI tag for the /tkthistory page. ... (check-in: 2d0b2bda user: george tags: deltify-tkt-blobs) | |
Changes to src/blob.c.
︙ | ︙ | |||
925 926 927 928 929 930 931 | int i; for(i=0; i<n; i++) blob_zero(&aBlob[i]); } void blobarray_reset(Blob *aBlob, int n){ int i; for(i=0; i<n; i++) blob_reset(&aBlob[i]); } | < < < < < < < < < < < < < < < < < < < | 925 926 927 928 929 930 931 932 933 934 935 936 937 938 | int i; for(i=0; i<n; i++) blob_zero(&aBlob[i]); } void blobarray_reset(Blob *aBlob, int n){ int i; for(i=0; i<n; i++) blob_reset(&aBlob[i]); } /* ** Parse a blob into space-separated tokens. Store each token in ** an element of the blobarray aToken[]. aToken[] is nToken elements in ** size. Return the number of tokens seen. */ int blob_tokenize(Blob *pIn, Blob *aToken, int nToken){ |
︙ | ︙ |
Changes to src/default.css.
︙ | ︙ | |||
701 702 703 704 705 706 707 | font-weight: bold; } td.difftxt ins > ins.edit { background-color: #c0c0ff; text-decoration: none; font-weight: bold; } | < < < | | 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 | font-weight: bold; } td.difftxt ins > ins.edit { background-color: #c0c0ff; text-decoration: none; font-weight: bold; } span.modpending { color: #b03800; font-style: italic; } pre.th1result { white-space: pre-wrap; |
︙ | ︙ |
Changes to src/info.c.
︙ | ︙ | |||
2826 2827 2828 2829 2830 2831 2832 | @ <input type="submit" value="Submit"> @ </form> @ </blockquote> } @ <div class="section">Changes</div> @ <p> | | | 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 | @ <input type="submit" value="Submit"> @ </form> @ </blockquote> } @ <div class="section">Changes</div> @ <p> ticket_output_change_artifact(pTktChng, 0, 1); manifest_destroy(pTktChng); style_finish_page(); } /* ** WEBPAGE: info |
︙ | ︙ |
Changes to src/tkt.c.
︙ | ︙ | |||
1202 1203 1204 1205 1206 1207 1208 | */ void tkthistory_page(void){ Stmt q; char *zTitle; const char *zUuid; int tagid; int nChng = 0; | < | 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 | */ void tkthistory_page(void){ Stmt q; char *zTitle; const char *zUuid; int tagid; int nChng = 0; login_check_credentials(); if( !g.perm.Hyperlink || !g.perm.RdTkt ){ login_needed(g.anon.Hyperlink && g.anon.RdTkt); return; } zUuid = PD("name",""); |
︙ | ︙ | |||
1232 1233 1234 1235 1236 1237 1238 | style_finish_page(); return; } if( P("raw")!=0 ){ @ <h2>Raw Artifacts Associated With Ticket %h(zUuid)</h2> }else{ @ <h2>Artifacts Associated With Ticket %h(zUuid)</h2> | < < < < | 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 | style_finish_page(); return; } if( P("raw")!=0 ){ @ <h2>Raw Artifacts Associated With Ticket %h(zUuid)</h2> }else{ @ <h2>Artifacts Associated With Ticket %h(zUuid)</h2> } db_prepare(&q, "SELECT datetime(mtime,toLocal()), objid, uuid, NULL, NULL, NULL" " FROM event, blob" " WHERE objid IN (SELECT rid FROM tagxref WHERE tagid=%d)" " AND blob.rid=event.objid" " UNION " |
︙ | ︙ | |||
1292 1293 1294 1295 1296 1297 1298 | Blob c; content_get(rid, &c); @ <blockquote><pre> @ %h(blob_str(&c)) @ </pre></blockquote> blob_reset(&c); }else{ | | < | 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 | Blob c; content_get(rid, &c); @ <blockquote><pre> @ %h(blob_str(&c)) @ </pre></blockquote> blob_reset(&c); }else{ ticket_output_change_artifact(pTicket, "a", nChng); } } manifest_destroy(pTicket); } @ </li> } db_finalize(&q); if( nChng ){ @ </ol> } style_finish_page(); } /* ** Return TRUE if the given BLOB contains a newline character. */ static int contains_newline(Blob *p){ const char *z = blob_str(p); |
︙ | ︙ | |||
1326 1327 1328 1329 1330 1331 1332 | /* ** The pTkt object is a ticket change artifact. Output a detailed ** description of this object. */ void ticket_output_change_artifact( Manifest *pTkt, /* Parsed artifact for the ticket change */ const char *zListType, /* Which type of list */ | | < > > > | > | | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | | | | | | | | | < < < < < | < < < < < < < < < | 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 | /* ** The pTkt object is a ticket change artifact. Output a detailed ** description of this object. */ void ticket_output_change_artifact( Manifest *pTkt, /* Parsed artifact for the ticket change */ const char *zListType, /* Which type of list */ int n /* Which ticket change is this */ ){ int i; if( zListType==0 ) zListType = "1"; getAllTicketFields(); @ <ol type="%s(zListType)"> for(i=0; i<pTkt->nField; i++){ Blob val; const char *z, *zX; int id; z = pTkt->aField[i].zName; blob_set(&val, pTkt->aField[i].zValue); zX = z[0]=='+' ? z+1 : z; id = fieldId(zX); @ <li>\ if( id<0 ){ @ Untracked field %h(zX): }else if( aField[id].mUsed==USEDBY_TICKETCHNG ){ @ %h(zX): }else if( n==0 ){ @ %h(zX) initialized to: }else if( z[0]=='+' && (aField[id].mUsed&USEDBY_TICKET)!=0 ){ @ Appended to %h(zX): }else{ @ %h(zX) changed to: } if( blob_size(&val)>50 || contains_newline(&val) ){ @ <blockquote><pre class='verbatim'> @ %h(blob_str(&val)) @ </pre></blockquote></li> }else{ @ "%h(blob_str(&val))"</li> } blob_reset(&val); } @ </ol> } /* ** COMMAND: ticket* ** |
︙ | ︙ |