summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorlaetzer <laetzer@users.sourceforge.net>2007-04-19 09:28:46 +0000
committerlaetzer <laetzer@users.sourceforge.net>2007-04-19 09:28:46 +0000
commit96353f985a390ab5bfe25992d163fc46415949f5 (patch)
tree371f16f180b663c41789fe35073109491ad8d085 /templates
parent065142b6014614f8c42880b324bba3a886ded998 (diff)
downloadfisheye-96353f985a390ab5bfe25992d163fc46415949f5.tar.gz
fisheye-96353f985a390ab5bfe25992d163fc46415949f5.tar.bz2
fisheye-96353f985a390ab5bfe25992d163fc46415949f5.zip
no "size=" if none requested
Diffstat (limited to 'templates')
-rw-r--r--templates/view_image.tpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/view_image.tpl b/templates/view_image.tpl
index a5f457b..c4fe40a 100644
--- a/templates/view_image.tpl
+++ b/templates/view_image.tpl
@@ -42,9 +42,10 @@
</div>
{if $gBitUser->hasPermission( 'p_liberty_attach_attachments' )}
+ {assign var=reqsize value=$smarty.request.size}
<p class="formhelp">
{tr}To include this file in a wiki page, blog post, article &hellip;, use the following string{/tr}:
- <input size="32" value="{ldelim}attachment id={$gContent->mInfo.image_file.attachment_id} {if $smarty.request.size neq "medium"}size={$smarty.request.size}{/if}{rdelim}" />
+ <input size="32" value="{ldelim}attachment{if $reqsize neq ''} size={$reqsize}{/if} id={$gContent->mInfo.image_file.attachment_id}{rdelim}" />
</p>
{/if}
</div> <!-- end .body -->