summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2009-01-23 19:20:01 +0000
committerMax Kremmel <xing@synapse.plus.com>2009-01-23 19:20:01 +0000
commitf8153d487674437a700764b4a8785cb1e2407f00 (patch)
tree3b316fdc5e8043aaed32f9ae8f9a0834889e4fe7
parent8d94c2a4d5ffec191b77b1941a9a8ee1c9adf49b (diff)
downloadliberty-f8153d487674437a700764b4a8785cb1e2407f00.tar.gz
liberty-f8153d487674437a700764b4a8785cb1e2407f00.tar.bz2
liberty-f8153d487674437a700764b4a8785cb1e2407f00.zip
only print <br /> when a description is set
-rw-r--r--templates/mime/default/attachment.tpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/mime/default/attachment.tpl b/templates/mime/default/attachment.tpl
index 2b2b0ef..2ba68a5 100644
--- a/templates/mime/default/attachment.tpl
+++ b/templates/mime/default/attachment.tpl
@@ -11,7 +11,9 @@
{elseif $attachment.thumbnail_url.$thumbsize}
<img class="thumb" src="{$attachment.thumbnail_url.$thumbsize}" alt="{$wrapper.alt|default:$wrapper.description|default:$attachment.filename|replace:"\r":""|replace:"\n":" "|escape}" title="{$wrapper.description|default:$wrapper.alt|default:$attachment.filename|replace:"\r":""|replace:"\n":" "|escape}" />
{/if}
- <br />{$wrapper.description_parsed}
+ {if $wrapper.description_parsed}
+ <br />{$wrapper.description_parsed}
+ {/if}
{if $wrapper.display_url}</a>{/if}
</{$wrapper.wrapper|default:'div'}>
{/if}