gitoriaLog in with ident

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit4a2d71254a2d7125initial commitmre4a2d7125/components/commit.hl

748 B

  1. // components/commit.hl — THE COMMIT PAGE of a repo (gitoria#9, gitoria#16): /commit/<id>[/<path>]: the whole project at that commit.
  2. // Its own route, rendered on the server (repo from the request's host, content from git: codebrowser.hl).
  3. // THE PATH AFTER /commit/: the route `/commit/*path` binds the rest of the path to the member `path` (hybriel#81).
  4. parent './main.hl'
  5. import { siteName } from '../project.hl'
  6. import RepoHead from './repohead.hl'
  7. import CodeBrowser from './codebrowser.hl'
  8. import { pageTitle } from '../repos.hl'
  9. import { slugOfHost } from '../users.hl'
  10. host = null
  11. path = ''
  12. __title = pageTitle(siteName, slugOfHost(host), 'Commit')
  13. View {
  14. repoPage {
  15. RepoHead { }
  16. CodeBrowser { kind = "commit" rest = path }
  17. }
  18. }

Branches

Latest commits

  • 4a2d7125initial commitmre