Monorepo for Tangled tangled.org

appview/pages: minor template fixes #538

merged opened by oppi.li targeting master from push-mvmrzuxwmzvs

these only worked because of a bug in loadAllTemplates. execute and executeRepo always had access to the repoBase layout. this is no longer the case.

Signed-off-by: oppiliappan me@oppi.li

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3lxfflozpvn22
+2 -6
Diff #0
+2 -2
appview/pages/pages.go
··· 618 618 619 619 func (p *Pages) RepoTree(w io.Writer, params RepoTreeParams) error { 620 620 params.Active = "overview" 621 - return p.execute("repo/tree", w, params) 621 + return p.executeRepo("repo/tree", w, params) 622 622 } 623 623 624 624 type RepoBranchesParams struct { ··· 832 832 } else { 833 833 params.State = "closed" 834 834 } 835 - return p.execute("repo/issues/issue", w, params) 835 + return p.executeRepo("repo/issues/issue", w, params) 836 836 } 837 837 838 838 type RepoNewIssueParams struct {
-4
appview/pages/templates/layouts/repobase.html
··· 88 88 {{ block "repoAfter" . }}{{ end }} 89 89 </section> 90 90 {{ end }} 91 - 92 - {{ define "layouts/repobase" }} 93 - {{ template "layouts/base" . }} 94 - {{ end }}

History

1 round 0 comments
sign up or login to add to the discussion
oppi.li submitted #0
1 commit
expand
appview/pages: minor template fixes
expand 0 comments
pull request successfully merged