Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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).
1 year ago
..
actions
Adjust style for action run list (align icons, adjust padding) ( #25170 )
1 year ago
branch
Improve AJAX link and modal confirm dialog ( #25210 )
1 year ago
cite
Button and color enhancements ( #24989 )
1 year ago
diff
Add template linting via djlint ( #25212 )
1 year ago
editor
Add template linting via djlint ( #25212 )
1 year ago
find
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ( #22950 )
2 years ago
graph
Improve commit date in commit graph ( #24399 )
2 years ago
issue
Add template linting via djlint ( #25212 )
1 year ago
migrate
Improve some Forms ( #24878 )
2 years ago
projects
Disable `Create column` button while the column name is empty ( #25192 )
1 year ago
pulls
Make diff view full width again ( #24598 )
2 years ago
release
Button and color enhancements ( #24989 )
1 year ago
settings
Add template linting via djlint ( #25212 )
1 year ago
tag
RSS icon fixes ( #24476 )
2 years ago
wiki
Use flex to align SVG and text ( #25163 )
1 year ago
activity.tmpl
Fix template function DateTime ( #24317 )
2 years ago
blame.tmpl
Add template linting via djlint ( #25212 )
1 year ago
branch_dropdown.tmpl
Make Issue/PR/projects more compact, misc CSS tweaks ( #24459 )
2 years ago
clone_buttons.tmpl
Rework button coloring, add focus and active colors ( #24507 )
2 years ago
clone_script.tmpl
Rework button coloring, add focus and active colors ( #24507 )
2 years ago
commit_page.tmpl
Add template linting via djlint ( #25212 )
1 year ago
commit_status.tmpl
Use different SVG for pending and running actions ( #23836 )
2 years ago
commit_statuses.tmpl
Button and color enhancements ( #24989 )
1 year ago
commits.tmpl
Make Issue/PR/projects more compact, misc CSS tweaks ( #24459 )
2 years ago
commits_list.tmpl
Add template linting via djlint ( #25212 )
1 year ago
commits_list_small.tmpl
Use flex to align SVG and text ( #25163 )
1 year ago
commits_table.tmpl
Use data-tooltip-content for tippy tooltip ( #23649 )
2 years ago
create.tmpl
Improve some Forms ( #24878 )
2 years ago
create_helper.tmpl
Add templates to customize text when creating and migrating repositories
2 years ago
empty.tmpl
Display when a repo was archived ( #22664 )
2 years ago
file_info.tmpl
Use data-tooltip-content for tippy tooltip ( #23649 )
2 years ago
forks.tmpl
Remove fomantic ".link" selector and styles ( #23888 )
2 years ago
graph.tmpl
Replace remaining fontawesome dropdown icons with SVG ( #24455 )
2 years ago
header.tmpl
Add template linting via djlint ( #25212 )
1 year ago
home.tmpl
Button and color enhancements ( #24989 )
1 year ago
icon.tmpl
Move helpers to be prefixed with `gt-` ( #22879 )
2 years ago
packages.tmpl
Add main landmark to templates and adjust titles ( #22670 )
2 years ago
release_tag_header.tmpl
Use flex to align SVG and text ( #25163 )
1 year ago
search.tmpl
Use data-tooltip-content for tippy tooltip ( #23649 )
2 years ago
search_name.tmpl
Clean template/helper.go ( #23922 )
2 years ago
shabox_badge.tmpl
Fix shabox regression ( #22924 )
2 years ago
sub_menu.tmpl
Change `--font-weight-bold` to `--font-weight-semibold` and 600 value, introduce new font weight variables ( #24827 )
2 years ago
unicode_escape_prompt.tmpl
Convert `<div class="button">` to `<button class="button">` ( #23337 )
2 years ago
upload.tmpl
Refactor `i18n` to `locale` ( #20153 )
2 years ago
user_cards.tmpl
Change `join_on` translation to `joined_on` and include placeholder for the date ( #24550 )
2 years ago
view_file.tmpl
Button and color enhancements ( #24989 )
1 year ago
view_list.tmpl
Rework notifications list ( #24812 )
2 years ago
watchers.tmpl
Fix user-cards format ( #24428 )
2 years ago