diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-06-14 13:21:54 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-06-14 13:21:54 +0000 |
| commit | c4129d51e100158c18684c47a47f805157b7cbc1 (patch) | |
| tree | ec50a8bd51d8b0affdfe990424bf2b5858895be5 /templates | |
| parent | 8e5210da57a44877ac6f12451dcd10eb9e6edfbe (diff) | |
| download | fisheye-c4129d51e100158c18684c47a47f805157b7cbc1.tar.gz fisheye-c4129d51e100158c18684c47a47f805157b7cbc1.tar.bz2 fisheye-c4129d51e100158c18684c47a47f805157b7cbc1.zip | |
Fix up pdf to use getPreview and fix getPreview results for some content types.
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/view_image.tpl | 59 |
1 files changed, 33 insertions, 26 deletions
diff --git a/templates/view_image.tpl b/templates/view_image.tpl index ee71a05..20b1dbc 100644 --- a/templates/view_image.tpl +++ b/templates/view_image.tpl @@ -1,20 +1,25 @@ {strip} -{include file="bitpackage:fisheye/gallery_nav.tpl"} +{if !$preview} + {include file="bitpackage:fisheye/gallery_nav.tpl"} +{/if} <div class="display fisheye"> - <div class="floaticon"> - {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$gContent->mInfo} - {if $gContent->hasUserPermission('p_fisheye_edit')} - <a title="{tr}Edit{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit_image.php?image_id={$gContent->mImageId}">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit Image"}</a> - <a title="{tr}Delete{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit_image.php?image_id={$gContent->mImageId}&delete=1">{biticon ipackage="icons" iname="edit-delete" iexplain="Delete Image"}</a> - {/if} - </div> + {if !$preview} + <div class="floaticon"> + {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$gContent->mInfo} + {if $gContent->hasUserPermission('p_fisheye_edit')} + <a title="{tr}Edit{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit_image.php?image_id={$gContent->mImageId}">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit Image"}</a> + <a title="{tr}Delete{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit_image.php?image_id={$gContent->mImageId}&delete=1">{biticon ipackage="icons" iname="edit-delete" iexplain="Delete Image"}</a> + {/if} + </div> + {/if} {formfeedback hash=$feedback} - - <div class="header"> - <h1>{$gContent->getTitle()|default:$gContent->mInfo.image_file.filename|escape}</h1> - </div> + {if !$preview} + <div class="header"> + <h1>{$gContent->getTitle()|default:$gContent->mInfo.image_file.filename|escape}</h1> + </div> + {/if} <div class="body"> {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$gContent->mInfo} @@ -26,22 +31,24 @@ {/if} {/box} - <div class="pagination"> - {tr}View other sizes{/tr}<br /> - {foreach name=size key=size from=$gContent->mInfo.image_file.thumbnail_url item=url} - {if $url != $gContent->mInfo.display_url}<a href="{$gContent->getDisplayUrl(0,$size)|escape}">{/if}{tr}{$size}{/tr}{if $url != $gContent->mInfo.display_url}</a>{/if} - {if !$smarty.foreach.size.last} • {/if} - {/foreach} - {if $gContent->hasEditPermission() || $gGallery && $gGallery->getPreference('link_original_images')} - • - <a href="{$gContent->mInfo.image_file.source_url|escape}">{tr}Original{/tr}</a> - {if $gContent->mInfo.width && $gContent->mInfo.height} - {$gContent->mInfo.width}x{$gContent->mInfo.height} + {if !$preview} + <div class="pagination"> + {tr}View other sizes{/tr}<br /> + {foreach name=size key=size from=$gContent->mInfo.image_file.thumbnail_url item=url} + {if $url != $gContent->mInfo.display_url}<a href="{$gContent->getDisplayUrl(0,$size)|escape}">{/if}{tr}{$size}{/tr}{if $url != $gContent->mInfo.display_url}</a>{/if} + {if !$smarty.foreach.size.last} • {/if} + {/foreach} + {if $gContent->hasEditPermission() || $gGallery && $gGallery->getPreference('link_original_images')} + • + <a href="{$gContent->mInfo.image_file.source_url|escape}">{tr}Original{/tr}</a> + {if $gContent->mInfo.width && $gContent->mInfo.height} + {$gContent->mInfo.width}x{$gContent->mInfo.height} + {/if} {/if} - {/if} - </div> + </div> - {attachhelp hash=$gContent->mInfo.image_file} + {attachhelp hash=$gContent->mInfo.image_file} + {/if} </div> <!-- end .body --> {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='view' serviceHash=$gContent->mInfo} |
