gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit529096e8529096e8RV28c: reportmre529096e8/components/franchisewidget.hl

1.4 KB

  1. // components/franchisewidget.hl — THE FRANCHISE WIDGET on a show / movie page (tracker.worldapi.org#19, mission 066), composed
  2. // by components/show.hl: `FranchiseWidget { widgets = … }` (franchises.hl widgetsOf). One per timeline the title is in:
  3. //
  4. // Star Trek ← the franchise (only when the timeline has one) → its index
  5. // ‹ Prequel | Star Trek — Prime | Sequel › ← links to the title before / after this one; an end is greyed out
  6. //
  7. // The timeline's name links to /timelines/<slug>. Each side shows the title it leads to under the word.
  8. widgets = []
  9. View {
  10. franchiseWidgets {
  11. for (w of widgets) {
  12. franchiseWidget { "data-timeline" = w.id
  13. if (w.hasFranchise) { a { class = "fw-franchise" href = w.franchiseHref w.franchiseName } }
  14. fwRow {
  15. if (w.hasPrev) {
  16. a { class = "fw-side fw-prev" href = w.prevHref title = w.prevTitle
  17. fwDir { "‹ Prequel" }
  18. fwTitle { w.prevTitle }
  19. }
  20. }
  21. if (w.noPrev) { span { class = "fw-side fw-prev off" "aria-disabled" = "true" fwDir { "‹ Prequel" } } }
  22. a { class = "fw-timeline" href = w.href w.name }
  23. if (w.hasNext) {
  24. a { class = "fw-side fw-next" href = w.nextHref title = w.nextTitle
  25. fwDir { "Sequel ›" }
  26. fwTitle { w.nextTitle }
  27. }
  28. }
  29. if (w.noNext) { span { class = "fw-side fw-next off" "aria-disabled" = "true" fwDir { "Sequel ›" } } }
  30. }
  31. }
  32. }
  33. }
  34. }

Branches

Latest commits

  • 529096e8RV28c: reportmre
  • a4047071RV28c: re-vendor Hybriel set day35 (source cb9e480d, bin 4bb25cfa)mre
  • 765057fbMerge main into rv28c (LOG.md, STATUS.md: both sides kept)mre
  • bf401884Tracker: RV28c startedmre
  • 0ff4ecd4Tracker: RV28c briefmre
  • 06565b1fRecords: day35 relay note, tickets subscription idmre
  • c6dc3e86RV28b: switch to set day35mre
  • 24e401b8Tracker: TR7 watch cleanmre
  • b0412957Tracker: RV28b handed overmre
  • 456940c8Tracker: RULINGS pathmre
  • b87a8fdcTracker: worldapi-conductor paths backmre
  • 641f3b54Tracker: Apollo answermre
  • 8b3cbddaTracker: status, TR7 fix livemre
  • ec30162aTracker: TR7 fix livemre
  • 54cbec80compose: ignore SIGPIPE (TR7 crash loop, exit 141)mre
  • 3e164b63Tracker: status after CL1mre
  • 9d686bb3Tracker: CL1 reviewedmre
  • b8bba562CL1: crash loop report (SIGPIPE confirmed, trap wrapper option)mre
  • 298785f2Tracker: CL1 startedmre
  • 36b22710Tracker: port slot, CL1 briefmre