Fossil

Check-in [08433ff8c9]
Login

Check-in [08433ff8c9]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Improve /brlist page so that several branches can be easily selected for the dedicated study via /timeline page. This is implemented using simple JavaScript that interactively changes a special hyperlink in the submenu of /brlist page. See [forum:/forumthread/07c94e4d7c202e|forum thread 07c94e4d7c].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | brlist-timeline
Files: files | file ages | folders
SHA3-256: 08433ff8c9f6b035dcdf5b282bd704af0f438d01ecc4d9da95321b2362754b91
User & Date: george 2021-04-18 19:59:21
Original Comment: Improve /brlist page so that several branches can be easily selected for the dedicated study via /timeline page. This is implemented using simple JavaScript that interactively changes a special hyperlink in the submenu of /brlist page. See [forum:/fomumthread/07c94e4d7c202e|forum thread 07c94e4d7c].
Context
2021-04-18
20:11
Fix the previous: add the <tt>fossil.page.brlist.js</tt> script which was forgotten. ... (check-in: 6f5a5643ae user: george tags: brlist-timeline)
19:59
Improve /brlist page so that several branches can be easily selected for the dedicated study via /timeline page. This is implemented using simple JavaScript that interactively changes a special hyperlink in the submenu of /brlist page. See [forum:/forumthread/07c94e4d7c202e|forum thread 07c94e4d7c]. ... (check-in: 08433ff8c9 user: george tags: brlist-timeline)
2021-04-17
12:23
Minor correction to finfo command comment help. ... (check-in: 8913402d10 user: andybradford tags: trunk)
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/branch.c.

465
466
467
468
469
470
471

472
473
474
475
476
477
478
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479







+







  int show_colors = PB("colors");
  login_check_credentials();
  if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
  style_set_current_feature("branch");
  style_header("Branches");
  style_adunit_config(ADUNIT_RIGHT_OK);
  style_submenu_checkbox("colors", "Use Branch Colors", 0, 0);
  style_submenu_element("Timeline", "%R/timeline");
  login_anonymous_available();

  brlist_create_temp_table();
  db_prepare(&q, "SELECT * FROM tmp_brlist ORDER BY mtime DESC");
  rNow = db_double(0.0, "SELECT julianday('now')");
  @ <div class="brlist">
  @ <table class='sortable' data-column-types='tkNtt' data-init-sort='2'>
502
503
504
505
506
507
508
509


510
511
512
513
514
515
516
517
518
519
520
521
522
523

524
525
526
527
528
529
530
503
504
505
506
507
508
509

510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533







-
+
+














+







      }
    }
    if( zBgClr && zBgClr[0] && show_colors ){
      @ <tr style="background-color:%s(zBgClr)">
    }else{
      @ <tr>
    }
    @ <td>%z(href("%R/timeline?r=%T",zBranch))%h(zBranch)</a></td>
    @ <td>%z(href("%R/timeline?r=%T",zBranch))%h(zBranch)</a>
    @     <input type="checkbox" disabled="disabled"/></td>
    @ <td data-sortkey="%016llx(iMtime)">%s(zAge)</td>
    @ <td>%d(nCkin)</td>
    fossil_free(zAge);
    @ <td>%s(isClosed?"closed":"")</td>
    if( zMergeTo ){
      @ <td>merged into
      @ %z(href("%R/timeline?f=%!S",zLastCkin))%h(zMergeTo)</a></td>
    }else{
      @ <td></td>
    }
    @ </tr>
  }
  @ </tbody></table></div>
  db_finalize(&q);
  builtin_request_js("fossil.page.brlist.js");
  style_table_sorter();
  style_finish_page();
}

/*
** WEBPAGE: brlist
** Show a list of branches.  With no query parameters, a sortable table

Changes to src/main.mk.

224
225
226
227
228
229
230

231
232
233
234
235
236
237
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238







+







  $(SRCDIR)/fossil.bootstrap.js \
  $(SRCDIR)/fossil.confirmer.js \
  $(SRCDIR)/fossil.copybutton.js \
  $(SRCDIR)/fossil.dom.js \
  $(SRCDIR)/fossil.fetch.js \
  $(SRCDIR)/fossil.info-diff.js \
  $(SRCDIR)/fossil.numbered-lines.js \
  $(SRCDIR)/fossil.page.brlist.js \
  $(SRCDIR)/fossil.page.fileedit.js \
  $(SRCDIR)/fossil.page.forumpost.js \
  $(SRCDIR)/fossil.page.pikchrshow.js \
  $(SRCDIR)/fossil.page.whistory.js \
  $(SRCDIR)/fossil.page.wikiedit.js \
  $(SRCDIR)/fossil.pikchr.js \
  $(SRCDIR)/fossil.popupwidget.js \