Fossil SCM
Add submenu to default branch list page
Commit
737e8d2394dbaf03d622f57412190cf7af14900d
Parent
9a091248757ae42…
1 file changed
+6
-2
+6
-2
| --- src/branch.c | ||
| +++ src/branch.c | ||
| @@ -341,10 +341,14 @@ | ||
| 341 | 341 | Stmt q; |
| 342 | 342 | double rNow; |
| 343 | 343 | login_check_credentials(); |
| 344 | 344 | if( !g.perm.Read ){ login_needed(g.anon.Read); return; } |
| 345 | 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"); | |
| 346 | 350 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 347 | 351 | login_anonymous_available(); |
| 348 | 352 | |
| 349 | 353 | db_prepare(&q, brlistQuery/*works-like:""*/); |
| 350 | 354 | rNow = db_double(0.0, "SELECT julianday('now')"); |
| @@ -424,11 +428,11 @@ | ||
| 424 | 428 | style_header("%s", showClosed ? "Closed Branches" : |
| 425 | 429 | showAll ? "All Branches" : "Open Branches"); |
| 426 | 430 | style_submenu_element("Timeline", "Timeline", "brtimeline"); |
| 427 | 431 | if( showClosed ){ |
| 428 | 432 | style_submenu_element("All", "All", "brlist?all"); |
| 429 | - style_submenu_element("Open","Open","brlist?open"); | |
| 433 | + style_submenu_element("Open","Open","brlist"); | |
| 430 | 434 | }else if( showAll ){ |
| 431 | 435 | style_submenu_element("Closed", "Closed", "brlist?closed"); |
| 432 | 436 | style_submenu_element("Open","Open","brlist"); |
| 433 | 437 | }else{ |
| 434 | 438 | style_submenu_element("All", "All", "brlist?all"); |
| @@ -489,11 +493,11 @@ | ||
| 489 | 493 | db_finalize(&q); |
| 490 | 494 | style_footer(); |
| 491 | 495 | } |
| 492 | 496 | |
| 493 | 497 | /* |
| 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 | |
| 495 | 499 | ** the timeline of a "brlist" page. Add some additional hyperlinks |
| 496 | 500 | ** to the end of the line. |
| 497 | 501 | */ |
| 498 | 502 | static void brtimeline_extra(int rid){ |
| 499 | 503 | Stmt q; |
| 500 | 504 |
| --- 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 |