AB#31228 - Added today date to email template.#2474
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for a “today’s date” token in notification email templates, enabling templates to include a current date value and ensuring previously-saved drafts refresh that date when reopened in the email editor.
Changes:
- Added a
today_datetemplate variable to notifications data seeding. - Implemented client-side rendering of
today_datevia Handlebars and inserted a marker span (data-token="today_date") into the rendered HTML. - Added logic to refresh any existing
today_datespans to the current date when loading an email body into TinyMCE / the backing form field.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/EmailsWidget/Default.js | Adds generation + refresh logic for a today_date token in rendered email HTML. |
| applications/Unity.GrantManager/modules/Unity.Notifications/src/Unity.Notifications.Domain/NotificationsDataSeedContributor.cs | Seeds a new today_date template variable so it’s available for templates. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
JamesPasta
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



No description provided.