WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.52k stars 998 forks source link

fix(templates): use format_html to render documentation icon #11873

Closed nijel closed 3 months ago

nijel commented 3 months ago

Proposed changes

This works faster than rendering additional template and there can be many documentation links on some pages.

Checklist

Other information

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.57%. Comparing base (6aee586) to head (a3cad88). Report is 3971 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11873/graphs/tree.svg?width=650&height=150&src=pr&token=9rzx9QBq35&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg)](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11873?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg) ```diff @@ Coverage Diff @@ ## main #11873 +/- ## ========================================== - Coverage 90.82% 90.57% -0.25% ========================================== Files 554 576 +22 Lines 57306 58704 +1398 Branches 9122 9384 +262 ========================================== + Hits 52046 53172 +1126 - Misses 3640 3833 +193 - Partials 1620 1699 +79 ``` | [Files with missing lines](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11873?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg) | Coverage Δ | | |---|---|---| | [weblate/trans/templatetags/translations.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11873?src=pr&el=tree&filepath=weblate%2Ftrans%2Ftemplatetags%2Ftranslations.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS90cmFucy90ZW1wbGF0ZXRhZ3MvdHJhbnNsYXRpb25zLnB5) | `89.57% <100.00%> (+0.36%)` | :arrow_up: | | [weblate/wladmin/templatetags/check\_links.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11873?src=pr&el=tree&filepath=weblate%2Fwladmin%2Ftemplatetags%2Fcheck_links.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS93bGFkbWluL3RlbXBsYXRldGFncy9jaGVja19saW5rcy5weQ==) | `100.00% <100.00%> (ø)` | | ... and [322 files with indirect coverage changes](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11873/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg)