Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add submenu to default branch list page |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | pending-review |
Files: | files | file ages | folders |
SHA1: |
737e8d2394dbaf03d622f57412190cf7 |
User & Date: | baruch 2016-01-20 13:36:55.441 |
Context
2016-01-28
| ||
20:51 | Test of feature branches, do not merge. ... (check-in: b0f2a0ac user: mistachkin tags: do-not-merge, test-only) | |
2016-01-20
| ||
13:36 | Add submenu to default branch list page ... (Closed-Leaf check-in: 737e8d23 user: baruch tags: pending-review) | |
2016-01-19
| ||
18:59 | Remove superfluous library reference when compiling with MinGW. ... (check-in: 9a091248 user: mistachkin tags: trunk) | |
Changes
Changes to src/branch.c.
︙ | ︙ | |||
339 340 341 342 343 344 345 346 347 348 349 350 351 352 | */ static void new_brlist_page(void){ Stmt q; double rNow; login_check_credentials(); if( !g.perm.Read ){ login_needed(g.anon.Read); return; } style_header("Branches"); style_adunit_config(ADUNIT_RIGHT_OK); login_anonymous_available(); db_prepare(&q, brlistQuery/*works-like:""*/); rNow = db_double(0.0, "SELECT julianday('now')"); @ <div class="brlist"><table id="branchlisttable"> @ <thead><tr> | > > > > | 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 | */ static void new_brlist_page(void){ Stmt q; double rNow; login_check_credentials(); if( !g.perm.Read ){ login_needed(g.anon.Read); return; } style_header("Branches"); style_submenu_element("Timeline", "Timeline", "brtimeline"); style_submenu_element("All", "All", "brlist?all"); style_submenu_element("Closed","Closed","brlist?closed"); style_submenu_element("Color-Test", "Color-Test", "brlist?colortest"); style_adunit_config(ADUNIT_RIGHT_OK); login_anonymous_available(); db_prepare(&q, brlistQuery/*works-like:""*/); rNow = db_double(0.0, "SELECT julianday('now')"); @ <div class="brlist"><table id="branchlisttable"> @ <thead><tr> |
︙ | ︙ | |||
422 423 424 425 426 427 428 | if( showClosed ) brFlags = BRL_CLOSED_ONLY; style_header("%s", showClosed ? "Closed Branches" : showAll ? "All Branches" : "Open Branches"); style_submenu_element("Timeline", "Timeline", "brtimeline"); if( showClosed ){ style_submenu_element("All", "All", "brlist?all"); | | | 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 | if( showClosed ) brFlags = BRL_CLOSED_ONLY; style_header("%s", showClosed ? "Closed Branches" : showAll ? "All Branches" : "Open Branches"); style_submenu_element("Timeline", "Timeline", "brtimeline"); if( showClosed ){ style_submenu_element("All", "All", "brlist?all"); style_submenu_element("Open","Open","brlist"); }else if( showAll ){ style_submenu_element("Closed", "Closed", "brlist?closed"); style_submenu_element("Open","Open","brlist"); }else{ style_submenu_element("All", "All", "brlist?all"); style_submenu_element("Closed","Closed","brlist?closed"); } |
︙ | ︙ | |||
487 488 489 490 491 492 493 | @ </ul> } db_finalize(&q); style_footer(); } /* | | | 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 | @ </ul> } db_finalize(&q); style_footer(); } /* ** This routine is called for each check-in that is rendered by ** the timeline of a "brlist" page. Add some additional hyperlinks ** to the end of the line. */ static void brtimeline_extra(int rid){ Stmt q; if( !g.perm.Hyperlink ) return; db_prepare(&q, |
︙ | ︙ |