Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jinja templating #629

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Jinja templating #629

wants to merge 10 commits into from

Conversation

Daihecyy
Copy link
Contributor

@Daihecyy Daihecyy commented Dec 4, 2024

Description

Changed email templates to use a Jinja base template, created a python helper function to test the templates and improved phrasing

@Daihecyy Daihecyy linked an issue Dec 4, 2024 that may be closed by this pull request
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.31%. Comparing base (5a2ecda) to head (6bea30e).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #629      +/-   ##
==========================================
+ Coverage   81.24%   81.31%   +0.06%     
==========================================
  Files         128      129       +1     
  Lines        9950    10013      +63     
==========================================
+ Hits         8084     8142      +58     
- Misses       1866     1871       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@armanddidierjean armanddidierjean added enhancement New feature or request jinja labels Dec 5, 2024
@Daihecyy Daihecyy added the invalid This doesn't seem right label Dec 5, 2024
@Daihecyy Daihecyy closed this Dec 5, 2024
@Daihecyy Daihecyy removed the invalid This doesn't seem right label Dec 5, 2024
@Daihecyy Daihecyy reopened this Dec 5, 2024
Copy link
Contributor

@Marc-Andrieu Marc-Andrieu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice refactoring!

I could argue on some rewritings of the English translations which you made while you were at it (why not having a separate PR for that? that's not the point of this PR).
But I won't bother you on it for now (on this PR at least!), bc I'd like it to be merged.

@aeecleclair aeecleclair deleted a comment from armanddidierjean Dec 16, 2024
@aeecleclair aeecleclair deleted a comment from Daihecyy Dec 16, 2024
@aeecleclair aeecleclair deleted a comment from Daihecyy Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jinja
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inherit jinja templates from a base templates
3 participants