Differences From:
File
src/wiki.c
part of check-in
[66f4caa379]
- Improvements to the WWW interface.
by
drh on
2007-07-23 19:52:51.
[view]
To:
File
src/wiki.c
part of check-in
[22c1ac41d4]
- Add separate "clone" permissions. Previously, one needed "History"
premission in order to clone. But sometimes we want to grant clone
without granting history.
by
drh on
2007-08-23 19:52:19.
[view]
@@ -35,6 +35,32 @@
*/
void wiki_page(void){
style_header("Wiki");
@ extra=%h(g.zExtra)
+ style_footer();
+}
+
+/*
+** WEBPAGE: ambiguous
+**
+** This is the destination for UUID hyperlinks that are ambiguous.
+** Show all possible choices for the destination with links to each.
+**
+** The ambiguous UUID prefix is in g.zExtra
+*/
+void ambiguous_page(void){
+ Stmt q;
+ style_header("Ambiguous UUID");
+ @ <p>The link <a href="%s(g.zBaseURL)/ambiguous/%T(g.zExtra)">
+ @ [%h(g.zExtra)]</a> is ambiguous. It might mean any of the following:</p>
+ @ <ul>
+ db_prepare(&q, "SELECT uuid, rid FROM blob WHERE uuid>=%Q AND uuid<'%qz'"
+ " ORDER BY uuid", g.zExtra, g.zExtra);
+ while( db_step(&q)==SQLITE_ROW ){
+ const char *zUuid = db_column_text(&q, 0);
+ int rid = db_column_int(&q, 1);
+ @ <li> %s(zUuid) - %d(rid)
+ }
+ db_finalize(&q);
+ @ </ul>
style_footer();
}