From 621ea93831a87d9d9d55e8711ef55e423fc4d5e8 Mon Sep 17 00:00:00 2001 From: Eldon Koyle Date: Mon, 7 Mar 2016 16:15:38 -0700 Subject: [PATCH] Fix minor doc bug and update example --- doc/Extensions/Alerting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Extensions/Alerting.md b/doc/Extensions/Alerting.md index e2f5a9ae3..1cef41509 100644 --- a/doc/Extensions/Alerting.md +++ b/doc/Extensions/Alerting.md @@ -99,7 +99,7 @@ The template-parser understands `if` and `foreach` controls and replaces certain Controls: - if-else (Else can be omitted): -`{if %placeholder == 'value'}Some Text{else}Other Text{/if}` +`{if %placeholder == value}Some Text{else}Other Text{/if}` - foreach-loop: `{foreach %placeholder}Key: %key
Value: %value{/foreach}` @@ -139,7 +139,7 @@ Alert sent to: {foreach %contacts}%value <%key> {/foreach} Conditional formatting example, will display a link to the host in email or just the hostname in any other transport: ```text -{if %transport == 'mail'}%hostname{else}%hostname{/if} +{if %transport == mail}%hostname{else}%hostname{/if} ``` # Transports