Fossil SCM

Add submenu to default branch list page

baruch 2016-01-20 13:36 trunk
Commit 737e8d2394dbaf03d622f57412190cf7af14900d
1 file changed +6 -2
+6 -2
--- src/branch.c
+++ src/branch.c
@@ -341,10 +341,14 @@
341341
Stmt q;
342342
double rNow;
343343
login_check_credentials();
344344
if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
345345
style_header("Branches");
346
+ style_submenu_element("Timeline", "Timeline", "brtimeline");
347
+ style_submenu_element("All", "All", "brlist?all");
348
+ style_submenu_element("Closed","Closed","brlist?closed");
349
+ style_submenu_element("Color-Test", "Color-Test", "brlist?colortest");
346350
style_adunit_config(ADUNIT_RIGHT_OK);
347351
login_anonymous_available();
348352
349353
db_prepare(&q, brlistQuery/*works-like:""*/);
350354
rNow = db_double(0.0, "SELECT julianday('now')");
@@ -424,11 +428,11 @@
424428
style_header("%s", showClosed ? "Closed Branches" :
425429
showAll ? "All Branches" : "Open Branches");
426430
style_submenu_element("Timeline", "Timeline", "brtimeline");
427431
if( showClosed ){
428432
style_submenu_element("All", "All", "brlist?all");
429
- style_submenu_element("Open","Open","brlist?open");
433
+ style_submenu_element("Open","Open","brlist");
430434
}else if( showAll ){
431435
style_submenu_element("Closed", "Closed", "brlist?closed");
432436
style_submenu_element("Open","Open","brlist");
433437
}else{
434438
style_submenu_element("All", "All", "brlist?all");
@@ -489,11 +493,11 @@
489493
db_finalize(&q);
490494
style_footer();
491495
}
492496
493497
/*
494
-** This routine is called while for each check-in that is rendered by
498
+** This routine is called for each check-in that is rendered by
495499
** the timeline of a "brlist" page. Add some additional hyperlinks
496500
** to the end of the line.
497501
*/
498502
static void brtimeline_extra(int rid){
499503
Stmt q;
500504
--- src/branch.c
+++ src/branch.c
@@ -341,10 +341,14 @@
341 Stmt q;
342 double rNow;
343 login_check_credentials();
344 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
345 style_header("Branches");
 
 
 
 
346 style_adunit_config(ADUNIT_RIGHT_OK);
347 login_anonymous_available();
348
349 db_prepare(&q, brlistQuery/*works-like:""*/);
350 rNow = db_double(0.0, "SELECT julianday('now')");
@@ -424,11 +428,11 @@
424 style_header("%s", showClosed ? "Closed Branches" :
425 showAll ? "All Branches" : "Open Branches");
426 style_submenu_element("Timeline", "Timeline", "brtimeline");
427 if( showClosed ){
428 style_submenu_element("All", "All", "brlist?all");
429 style_submenu_element("Open","Open","brlist?open");
430 }else if( showAll ){
431 style_submenu_element("Closed", "Closed", "brlist?closed");
432 style_submenu_element("Open","Open","brlist");
433 }else{
434 style_submenu_element("All", "All", "brlist?all");
@@ -489,11 +493,11 @@
489 db_finalize(&q);
490 style_footer();
491 }
492
493 /*
494 ** This routine is called while for each check-in that is rendered by
495 ** the timeline of a "brlist" page. Add some additional hyperlinks
496 ** to the end of the line.
497 */
498 static void brtimeline_extra(int rid){
499 Stmt q;
500
--- src/branch.c
+++ src/branch.c
@@ -341,10 +341,14 @@
341 Stmt q;
342 double rNow;
343 login_check_credentials();
344 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
345 style_header("Branches");
346 style_submenu_element("Timeline", "Timeline", "brtimeline");
347 style_submenu_element("All", "All", "brlist?all");
348 style_submenu_element("Closed","Closed","brlist?closed");
349 style_submenu_element("Color-Test", "Color-Test", "brlist?colortest");
350 style_adunit_config(ADUNIT_RIGHT_OK);
351 login_anonymous_available();
352
353 db_prepare(&q, brlistQuery/*works-like:""*/);
354 rNow = db_double(0.0, "SELECT julianday('now')");
@@ -424,11 +428,11 @@
428 style_header("%s", showClosed ? "Closed Branches" :
429 showAll ? "All Branches" : "Open Branches");
430 style_submenu_element("Timeline", "Timeline", "brtimeline");
431 if( showClosed ){
432 style_submenu_element("All", "All", "brlist?all");
433 style_submenu_element("Open","Open","brlist");
434 }else if( showAll ){
435 style_submenu_element("Closed", "Closed", "brlist?closed");
436 style_submenu_element("Open","Open","brlist");
437 }else{
438 style_submenu_element("All", "All", "brlist?all");
@@ -489,11 +493,11 @@
493 db_finalize(&q);
494 style_footer();
495 }
496
497 /*
498 ** This routine is called for each check-in that is rendered by
499 ** the timeline of a "brlist" page. Add some additional hyperlinks
500 ** to the end of the line.
501 */
502 static void brtimeline_extra(int rid){
503 Stmt q;
504

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button