You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/user/settings
silverwind e24f651c86
Add template linting via djlint (#25212)
So I found this [linter](https://github.com/Riverside-Healthcare/djlint)
which features a mode for go templates, so I gave it a try and it did
find a number of valid issue, like unbalanced tags etc. It also has a
number of bugs, I had to disable/workaround many issues.

Given that this linter is written in python, this does add a dependency
on `python` >= 3.8 and `poetry` to the development environment to be
able to run this linter locally.

- `e.g.` prefixes on placeholders are removed because the linter had a
false-positive on `placeholder="e.g. cn=Search"` for the `attr=value`
syntax and it's not ideal anyways to write `e.g.` into a placeholder
because a placeholder is meant to hold a sample value.
- In `templates/repo/settings/options.tmpl` I simplified the logic to
not conditionally create opening tags without closing tags because this
stuff confuses the linter (and possibly the reader as well).
2 years ago
..
security Add template linting via djlint (#25212) 2 years ago
account.tmpl Change `--font-weight-bold` to `--font-weight-semibold` and 600 value, introduce new font weight variables (#24827) 2 years ago
actions.tmpl Add user level action runners (#24995) 2 years ago
appearance.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2 years ago
applications.tmpl Change access token UI to select dropdowns (#25109) 2 years ago
applications_oauth2.tmpl Allow creation of OAuth2 applications for orgs (#18084) 2 years ago
applications_oauth2_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2 years ago
applications_oauth2_edit_form.tmpl Fix edit OAuth application width (#25262) 2 years ago
applications_oauth2_list.tmpl Add ability to set multiple redirect URIs in OAuth application UI (#25072) 2 years ago
grants_oauth2.tmpl Change `add_on` translation to `added_on` and include placeholder for the date (#24562) 2 years ago
hook_new.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2 years ago
hooks.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2 years ago
keys.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2 years ago
keys_gpg.tmpl Add template linting via djlint (#25212) 2 years ago
keys_principal.tmpl Change `add_on` translation to `added_on` and include placeholder for the date (#24562) 2 years ago
keys_ssh.tmpl Improve some Forms (#24878) 2 years ago
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2 years ago
layout_head.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2 years ago
navbar.tmpl Add details summary for vertical menus in settings to allow toggling (#25098) 2 years ago
organization.tmpl Improve some modal action buttons (#24289) 2 years ago
packages.tmpl Add template linting via djlint (#25212) 2 years ago
packages_cleanup_rules_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2 years ago
packages_cleanup_rules_preview.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2 years ago
profile.tmpl Improve AJAX link and modal confirm dialog (#25210) 2 years ago
repos.tmpl Add template linting via djlint (#25212) 2 years ago
runner_edit.tmpl Add user level action runners (#24995) 2 years ago