mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 12:15:43 +01:00
ce73492d6f
Before, the `dict "ctx" ...` map is used to pass data between templates. Now, more and more templates need to use real Go context: * #22962 * #23092 `ctx` is a Go concept for `Context`, misusing it may cause problems, and it makes it difficult to review or refactor. This PR contains 2 major changes: * In the top scope of a template, the `$` is the same as the `.`, so the old labels_sidebar's `root` is the `ctx`. So this `ctx` could just be removed. |
||
---|---|---|
.. | ||
fields | ||
labels | ||
view_content | ||
branch_selector_field.tmpl | ||
choose.tmpl | ||
comment_tab.tmpl | ||
label_precolors.tmpl | ||
labels.tmpl | ||
list.tmpl | ||
milestone_issues.tmpl | ||
milestone_new.tmpl | ||
milestones.tmpl | ||
navbar.tmpl | ||
new.tmpl | ||
new_form.tmpl | ||
openclose.tmpl | ||
search.tmpl | ||
view.tmpl | ||
view_content.tmpl | ||
view_title.tmpl |