gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit1880f42a1880f42arecords: day38 deploy may swap normallymre1880f42a/components/people.hl

1.7 KB

  1. // components/people.hl — `/people`, `/people/page/<n>` (tracker#37, mission 032: the main menu's People). Creator: "/people just
  2. // lists persons by last one updated with poster name and pagination": everyone, the one updated last first, photo + name tiles
  3. // (the name in the person colour), 24 per page, each a link to the person's page (components/person.hl). The list: lib/people.hl
  4. // peoplePage (a view built once at boot — no scan per load). The grid and the pagination: components/tilelist.hl, like /movies.
  5. parent './main.hl'
  6. import TileList from './tilelist.hl'
  7. import { appTitle } from '../project.hl'
  8. import { peoplePage, peopleCount } from '../lib/people.hl'
  9. import { warmReady, warmText } from '../lib/warm.hl'
  10. page = null
  11. listing = peoplePage(page)
  12. tiles = listing.tiles
  13. pageNo = listing.page
  14. pageCount = listing.pages
  15. total = peopleCount()
  16. countText = total + (total == 1 ? ' person' : ' people') + ', last updated first · page ' + pageNo + ' of ' + pageCount
  17. basePath = '/people'
  18. __title = pageNo > 1 ? 'People, page ' + pageNo + ' — ' + appTitle : 'People — ' + appTitle
  19. // mission T17 (boot time): the server listens while bootscan.hl still builds the lists / slug maps / search index (lib/warm.hl); until the 'all'
  20. // stage is there this page says so instead of showing half a map
  21. warming = !warmReady('all')
  22. warmNote = warming ? warmText() : ''
  23. View {
  24. listPage { id = "people-list"
  25. if (warming) { p { id = "warming" class = "message banner" warmNote } }
  26. h1 { class = "typed" typeWord { class = "type-word type-person" "People" } }
  27. p { class = "muted list-count" countText }
  28. TileList { tiles = tiles page = pageNo pages = pageCount basePath = basePath tileClass = "tile person-tile" }
  29. }
  30. }

Branches

Latest commits

  • 1880f42arecords: day38 deploy may swap normallymre
  • 9d806e35records: mpackdb freeze until day38mre
  • a660239drecords: day37 lacks #277, wait for day38mre
  • b0abfdeaLOG: Anton hybriel#277 fix ready for day37mre
  • 7b5b2918Tracker: hybriel#277 fix comes in day37mre
  • 7ddbeec8Tracker: RV28c blocked on day35 regressionmre
  • 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