Differences From Artifact [b267288bfa]:
- File src/attach.c — part of check-in [a0577666f4] at 2021-07-16 02:45:56 on branch trunk — Added test-list-attachments command as a preliminary step towards adding the ability to list wiki page attachments from within /wikiedit. (user: stephan size: 27000) [more...]
To Artifact [53a49ac872]:
- File src/attach.c — part of check-in [648bb4c1b5] at 2021-08-18 19:13:50 on branch trunk — attachment_list(), used by wiki, tech-note, and ticket attachment lists, now includes a download link which attempts to download using the file's name instead of artifact ID. Discussed in [forum:6566f665a3685c4f | forum post 6566f665a3685c4f]. (user: stephan size: 27091) [more...]
| ︙ | ︙ | |||
657 658 659 660 661 662 663 664 665 666 667 668 669 670 |
const char *zDispUser = zUser && zUser[0] ? zUser : "anonymous";
if( cnt==0 ){
@ %s(zHeader)
}
cnt++;
@ <li>
@ %z(href("%R/artifact/%!S",zSrc))%h(zFile)</a>
@ added by %h(zDispUser) on
hyperlink_to_date(zDate, ".");
@ [%z(href("%R/ainfo/%!S",zUuid))details</a>]
@ </li>
}
if( cnt ){
@ </ul>
| > | 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 |
const char *zDispUser = zUser && zUser[0] ? zUser : "anonymous";
if( cnt==0 ){
@ %s(zHeader)
}
cnt++;
@ <li>
@ %z(href("%R/artifact/%!S",zSrc))%h(zFile)</a>
@ [<a href="%R/attachdownload/%t(zFile)?page=%t(zTarget)&file=%t(zFile)">download</a>]
@ added by %h(zDispUser) on
hyperlink_to_date(zDate, ".");
@ [%z(href("%R/ainfo/%!S",zUuid))details</a>]
@ </li>
}
if( cnt ){
@ </ul>
|
| ︙ | ︙ |