Diff
Not logged in

Differences From:

File src/descendants.c part of check-in [432d4391b9] - Fix a bug in the "leaves" page when the repository is empty. Begin adding support for the ability to erase tags. by drh on 2009-01-21 13:50:11. [view]

To:

File src/descendants.c part of check-in [2fa4df1e47] - Add timeline links on the leaves page. Also on the leaves page, do not show Merge labels on check-ins. The second part is the fix for ticket d6bb26f436d8299f95d63f45fa51c92acdc91c5a. by drh on 2009-01-21 18:59:11. [view]

@@ -251,8 +251,17 @@
   db_finalize(&q);
 }
 
 /*
+** This routine is called while for each check-in that is rendered by
+** the "leaves" page.  Add some additional hyperlink to show the
+** ancestors of the leaf.
+*/
+static void leaves_extra(int rid){
+  @ <a href="%s(g.zBaseURL)/timeline?p=%d(rid)">[timeline]</a>
+}
+
+/*
 ** WEBPAGE:  leaves
 **
 ** Find leaves of all branches.
 */
@@ -299,9 +308,9 @@
     "   AND blob.rid IN leaves"
     " ORDER BY event.mtime DESC",
     timeline_query_for_www()
   );
-  www_print_timeline(&q, 0, 0);
+  www_print_timeline(&q, TIMELINE_LEAFONLY, leaves_extra);
   db_finalize(&q);
   @ <br clear="both">
   @ <script>
   @ function xin(id){