gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit7aea52ba7aea52batmdb fix: protect owners without slugs and record passing gatesmre7aea52ba/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

  • 7aea52batmdb fix: protect owners without slugs and record passing gatesmre
  • 9b3c2559tmdb fix: revalidate planned identities and reserve target idsmre
  • d56ee0daT36A: report unsafe TMDB apply revalidation and stop before livemre
  • 08e55255log: HM56 done, T36A startedmre
  • 5fd2ac75status: #36 GOmre
  • 0d253b45mission: T36Amre
  • 2aa22d23log: #36 GOmre
  • 833aee2flog: #50 closed, HM56 startedmre
  • ac58c1e5mission: HM56mre
  • 58979c0clog: HM54 held for decision, DP65 startedmre
  • bb2ebc67log: #64 live, #53 mergedmre
  • 27cde42fMerge hm53-dom: tracker#53 inputs bound to membersmre
  • 2156cc7flog: HM54 reviewmre
  • 9fb82efclog: HM54 gap, fill continuesmre
  • b632eb8dlog: HM53 done, HM54 startedmre
  • ccb1a263tracker#53: bind editor drafts and use key event focus targetmre
  • 3356fcfclog: #52 blocked, HM53 startedmre
  • 833dcfc9Merge hm52-search: report only, tracker#52 blocked by framework gapmre
  • 73010cc0HM52: report replace-navigation search draft regressionmre
  • 1742e92bstatus: DP64 and HM52 runningmre