fix bug 334629

This commit is contained in:
wclouser%mozilla.com 2006-06-13 23:36:39 +00:00
parent 602eac395c
commit 31e90a530e
2 changed files with 9 additions and 7 deletions

View File

@ -3,9 +3,7 @@
<li><span>{$addon->Name}</span>
<ul>
<li><a href="{$config.webpath}/{$app}/{$addon->ID}/">Overview</a></li>
{if $addon->PreviewID}
<li><a href="{$config.webpath}/{$app}/{$addon->ID}/previews/">Previews &amp; Screenshots</a></li>
{/if}
<li><a href="{$config.webpath}/{$app}/{$addon->ID}/previews/">Previews &amp; Screenshots</a></li>
<li><a href="{$config.webpath}/{$app}/{$addon->ID}/comments/">Comments</a></li>
<li><a href="{$config.webpath}/addcomment.php?aid={$addon->ID}&amp;app={$app}">Add a Comment</a></li>
<li><a href="{$config.webpath}/{$app}/{$addon->ID}/history/">Version History</a></li>

View File

@ -9,8 +9,12 @@ by
released on {$addon->VersionDateAdded|date_format}
</p>
{section name=preview loop=$addon->Previews}
<h4>{$addon->Previews[preview].caption}</h4>
<img src="{$config.webpath}{$addon->Previews[preview].PreviewURI}" alt="{$addon->Previews[preview].caption}" width="{$addon->Previews[preview].width}" height="{$addon->Previews[preview].height}"><br>
{if count($addon->Previews) > 0 }
{section name=preview loop=$addon->Previews}
<h4>{$addon->Previews[preview].caption}</h4>
<img src="{$config.webpath}{$addon->Previews[preview].PreviewURI}" alt="{$addon->Previews[preview].caption}" width="{$addon->Previews[preview].width}" height="{$addon->Previews[preview].height}"><br>
{/section}
{/section}
{else}
<p>There are no previews or screenshots for this add-on.</p>
{/if}