Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Use the timeline format for /whistory. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
cef8425cf4a482a3f7b77546393f2e90 |
User & Date: | drh 2020-08-28 09:34:41 |
References
2021-03-23
| ||
14:50 | Implement selection of two arbitrary versions of a wiki for comparison (radio-button selects a baseline, anchor sign clears this selection). Also let several sequential edits by the same user be "recycled" into a single row. Effectively this backouts [cef8425cf4a482a3]. See also a forum thread ... (check-in: 6ebf5c7c user: george tags: trunk) | |
Context
2020-08-28
| ||
09:47 | Unprotect the ssl-identity property when setting it. ... (check-in: e3636830 user: drh tags: trunk) | |
09:34 | Use the timeline format for /whistory. ... (check-in: cef8425c user: drh tags: trunk) | |
2020-08-27
| ||
23:54 | Typo fix: Turns out "edited" only has one "t". Who knew? ... (check-in: 91ff34dc user: drh tags: trunk) | |
Changes
Changes to src/wiki.c.
︙ | ︙ | |||
1545 1546 1547 1548 1549 1550 1551 | ** Additional parameters: ** ** showid Show RID values ** ** Show the complete change history for a single wiki page. */ void whistory_page(void){ | < | | | < | < | | < | > | | | < | | < < < < < < < < < < < < < < < | | < < < < < < > | < < < < < < < < < | | 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 | ** Additional parameters: ** ** showid Show RID values ** ** Show the complete change history for a single wiki page. */ void whistory_page(void){ const char *zPageName; Blob sql; Stmt q; login_check_credentials(); if( !g.perm.RdWiki ){ login_needed(g.anon.RdWiki); return; } zPageName = PD("name",""); style_header("History Of %s", zPageName); blob_init(&sql, 0, 0); blob_append(&sql, timeline_query_for_www(), -1); blob_append_sql(&sql, "AND event.objid IN (" " SELECT tagxref.srcid" " FROM tagxref, tag" " WHERE tagxref.tagid=tag.tagid" " AND tag.tagname='wiki-%q')" " ORDER BY mtime DESC", zPageName ); db_prepare(&q, "%s", blob_sql_text(&sql)); www_print_timeline(&q, TIMELINE_DISJOINT|TIMELINE_GRAPH|TIMELINE_REFS, 0, 0, 0, 0, 0, 0); db_finalize(&q); blob_reset(&sql); style_footer(); } /* ** WEBPAGE: wdiff ** ** Show the changes to a wiki page. |
︙ | ︙ |