forgejo/templates
Gusted 6fbfe441de
[BUG] Load AllUnitsEnabled when necessary
- In order to determine if the "Add more..." tab should be shown, the
template has to know if the repository has all units enabled, this is
done in the repository header which can be shown for quite a lot of
pages (code, issues, projects, actions etc.)
- This was previously set in the `RepoRefByType` function, which would
be called by pages such as code, issues and releases, but it was not
being called for all pages such as actions, packages and wiki. Which
would in turn incorrectly show the "Add more..." button when it
shouldn't.
- Now call it from the template itself, so the value is 'always' loaded
when necessary.
2024-02-21 12:48:26 +01:00
..
admin Convert visibility to number (#29226) 2024-02-19 22:58:33 +01:00
api/packages/pypi
base Remove DataRaceCheck (#29258) 2024-02-19 22:58:33 +01:00
code
custom
devtest
explore
mail Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
org Use "Safe" modifier for manually constructed safe HTML strings in templates (#29227) 2024-02-19 22:58:32 +01:00
package Merge branch 'rebase-forgejo-dependency' into wip-forgejo 2024-02-05 18:58:23 +01:00
projects
repo [BUG] Load AllUnitsEnabled when necessary 2024-02-21 12:48:26 +01:00
shared Refactor more code in templates (#29236) 2024-02-19 22:58:32 +01:00
status
swagger Refactor more code in templates (#29236) 2024-02-19 22:58:32 +01:00
user Refactor more code in templates (#29236) 2024-02-19 22:58:32 +01:00
webhook Change webhook-type in create-view (#29114) 2024-02-17 23:24:30 +01:00
home.tmpl
install.tmpl
post-install.tmpl