{{/* cgit's own header markup, rendered in place of the one noheader=1 turns off, so that both kinds of page carry the same header and it can name the account. */}} {{define "header"}} {{end}} {{/* The forge's sections, in cgit's tab markup. */}} {{define "tabs"}}{{with .Repo}}{{if .Issues}}issues{{end}}{{if .Wiki}}wiki{{end}}{{if .Settings}}settings{{end}}{{end}}{{end}} {{/* cgit's row copied, for the forge's own pages where cgit renders nothing: the same tabs in the same order, and the same search cell. */}} {{define "tabrow"}}{{with .Repo}}
aboutsummaryrefslogtreecommitdiff{{template "tabs" $}}
{{end}}{{end}} {{/* In the layout because every page is parsed as its own set, and a partial defined in one page is invisible to the next. */}} {{define "who"}}{{if .}} {{.}}{{else}}nobody{{end}}{{end}} {{/* One fragment for both the create form and the settings form, so that the two cannot drift apart on what members and users mean. */}} {{define "knobs"}}
Who may read it
Who may file issues
Who may edit the wiki

Reading is visibility's job alone. The other two say who may write, so a repository can take bug reports and documentation fixes from people who will never push code. users on a private repository is refused rather than coerced.

{{end}}