mozilla%colinogilvie.co.uk 3c1970c86a Ability to rate a comment. Currently, this uses GET requests - may be necessary to change it to a POST request to stop abuse of it at a later date
git-svn-id: svn://10.0.0.236/trunk@176875 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-30 19:29:14 +00:00

20 lines
1.1 KiB
Smarty

<h2><strong>{$addon->Name}</strong> &raquo; Comments</h2>
<p class="first">
<strong><a href="./addon.php?id={$addon->ID}">{$addon->Name} {$addon->Version}</a></strong>,
by <a href="./author.php?id={$addon->UserID}">{$addon->UserName}</a>,
released on {$addon->VersionDateAdded|date_format}
</p>
<ul id="opinions">
{section name=comments loop=$addon->Comments max=10}
<li>
<h4>{$addon->Comments[comments].CommentTitle} ({$addon->Comments[comments].CommentVote} rating)</h4>
<p class="opinions-info">by {$addon->Comments[comments].CommentName}, {$addon->Comments[comments].CommentDate|date_format}<br>
{$addon->Comments[comments].helpful_yes} out of {$addon->Comments[comments].helpful_total} viewers found this comment helpful</p>
<p class="opinions-text">{$addon->Comments[comments].CommentNote}</p>
<p class="opinions-rating">Was this comment helpful? <a href="./ratecomment.php?aid={$addon->ID}&amp;cid={$addon->Comments[comments].CommentID}&amp;r=yes">Yes</a> &#124; <a href="./ratecomment.php?aid={$addon->ID}&amp;cid={$addon->Comments[comments].CommentID}&amp;r=no">No</a></p>
</li>
{/section}
</ul>