[Crucible Knowledge Base]
Email notifications in Crucible can be customised to change their formatting, by editing template files. This page contains instructions for this process.
Template files for Crucible are stored in the folder./template/crucible/<Crucible home directory>
There are sets of templates for both HTML and plain-text emails, as listed in the table below. Note that these templates do not support embedding full diffs into notifications. They are only for changing the appearance and order of certain content inside the messages.
You can edit templates in any text editor:
The email notification templates use the Freemarker format. Freemarker is a general templating engine enabling automated content.
If you are familiar with Freemarker, more advanced customisations can be made to the email notification templates. However, you make such adjustments at your own risk.
See Freemarker Data Model for Email Templates in the FishEye documentation for details of the data model used by FishEye/Crucible.
The following template files for Crucible notification are stored in the folder./template/crucible/<Crucible home directory>
Template filename | 目的 |
|---|---|
crucible-notification-subject.ftl | Subject template. All of the content must be contained within the first line of the template. You can't use markup in this line. |
crucible-notification-header.ftl | Header template |
crucible-notification-footer.ftl | Footer template |
state-closed-notification.ftl | State Closed template |
all-completed-notification.ftl | All Completed template |
state-changed-notification.ftl | State Changed template |
completed-notification.ftl | Completed template |
general-notification.ftl | General notification template |
uncompleted-notification.ftl | 'Uncompleted' template |
all-no-longer-completed-notification.ftl | All-No-Longer-Completed template |
comment-notification.ftl | Comment template |
reply-notification.ftl | Reply template |
review-precis-plain.ftl | Precis template |
| review-reminder-notification.ftl | Review Reminder template |
See also Customising FishEye Email Notifications.