|
35 | 35 | </div>
|
36 | 36 | <div class="pure-control-group">
|
37 | 37 | {{ render_field(form.notification_body , rows=5, class="notification-body", placeholder=settings_application['notification_body']) }}
|
38 |
| - <span class="pure-form-message-inline">Body for all notifications</span> |
| 38 | + <span class="pure-form-message-inline">Body for all notifications ‐ You can use <a target="_new" href="https://jinja.palletsprojects.com/en/3.0.x/templates/">Jinja2</a> templating in the notification title, body and URL, and tokens from below. |
| 39 | + </span> |
| 40 | + |
| 41 | + </div> |
| 42 | + <div class="pure-controls"> |
| 43 | + <div id="notification-token-toggle" class="pure-button button-tag button-xsmall">Show token/placeholders</div> |
39 | 44 | </div>
|
40 | 45 | <div class="pure-control-group">
|
41 | 46 | <!-- unsure -->
|
42 | 47 | {{ render_field(form.notification_format , class="notification-format") }}
|
43 | 48 | <span class="pure-form-message-inline">Format for all notifications</span>
|
44 | 49 | </div>
|
45 |
| - <div class="pure-controls"> |
46 |
| - <p class="pure-form-message-inline"> |
47 |
| - You can use <a target="_new" href="https://jinja.palletsprojects.com/en/3.0.x/templates/">Jinja2</a> templating in the notification title, body and URL. |
48 |
| - </p> |
49 |
| - |
| 50 | + <div class="pure-controls" style="display: none;" id="notification-tokens-info"> |
50 | 51 | <table class="pure-table" id="token-table">
|
51 | 52 | <thead>
|
52 | 53 | <tr>
|
|
115 | 116 | </tbody>
|
116 | 117 | </table>
|
117 | 118 | <div class="pure-form-message-inline">
|
118 |
| - Warning: Contents of <code>{{ '{{diff}}' }}</code>, <code>{{ '{{diff_removed}}' }}</code>, and <code>{{ '{{diff_added}}' }}</code> depend on how the difference algorithm perceives the change. For example, an addition or removal could be perceived as a change in some cases. <a target="_new" href="https://github.com/dgtlmoon/changedetection.io/wiki/Using-the-%7B%7Bdiff%7D%7D,-%7B%7Bdiff_added%7D%7D,-and-%7B%7Bdiff_removed%7D%7D-notification-tokens">More Here</a> <br> |
| 119 | + <p> |
| 120 | + Warning: Contents of <code>{{ '{{diff}}' }}</code>, <code>{{ '{{diff_removed}}' }}</code>, and <code>{{ '{{diff_added}}' }}</code> depend on how the difference algorithm perceives the change. <br> |
| 121 | + For example, an addition or removal could be perceived as a change in some cases. <a target="_new" href="https://github.com/dgtlmoon/changedetection.io/wiki/Using-the-%7B%7Bdiff%7D%7D,-%7B%7Bdiff_added%7D%7D,-and-%7B%7Bdiff_removed%7D%7D-notification-tokens">More Here</a> <br> |
| 122 | + </p> |
119 | 123 | </div>
|
120 | 124 | </div>
|
121 | 125 | </div>
|
|
0 commit comments