зеркало из https://github.com/mozilla/gecko-dev.git
fix for 333107
This commit is contained in:
Родитель
09565a011c
Коммит
ac8c4ecfc7
|
@ -102,7 +102,13 @@ Works with:
|
|||
<li>
|
||||
<div class="opinions-vote">{$addon->Comments[comments].CommentVote} <span class="opinions-caption">out of 5</span></div>
|
||||
<h4 class="opinions-title">{$addon->Comments[comments].CommentTitle|strip_tags}</h4>
|
||||
<p class="opinions-info">by {$addon->Comments[comments].CommentName|strip_tags}, {$addon->Comments[comments].CommentDate|date_format}</p>
|
||||
<p class="opinions-info">by
|
||||
{if $addon->Comments[comments].CommentName}
|
||||
{$addon->Comments[comments].CommentName|strip_tags}
|
||||
{else}
|
||||
{$addon->Comments[comments].UserName|strip_tags}
|
||||
{/if}
|
||||
, {$addon->Comments[comments].CommentDate|date_format}</p>
|
||||
<p class="opinions-text">{$addon->Comments[comments].CommentNote|strip_tags}</p>
|
||||
<p class="opinions-helpful"><strong>{$addon->Comments[comments].helpful_yes}</strong> out of <strong>{$addon->Comments[comments].helpful_total}</strong> viewers found this comment helpful<br>
|
||||
Was this comment helpful? <a href="{$config.webpath}/ratecomment.php?aid={$addon->ID}&cid={$addon->Comments[comments].CommentID}&r=yes&app={$app}">Yes</a> | <a href="{$config.webpath}/ratecomment.php?aid={$addon->ID}&cid={$addon->Comments[comments].CommentID}&r=no&app={$app}">No</a></p>
|
||||
|
|
|
@ -55,7 +55,13 @@ Next Page »
|
|||
<li>
|
||||
<div class="opinions-vote">{$addon->Comments[comments].CommentVote}<span class="opinions-caption">out of 5</span></div>
|
||||
<h4 class="opinions-title">{$addon->Comments[comments].CommentTitle|strip_tags}</h4>
|
||||
<p class="opinions-info">by {$addon->Comments[comments].CommentName|strip_tags}, {$addon->Comments[comments].CommentDate|date_format}</p>
|
||||
<p class="opinions-info">by
|
||||
{if $addon->Comments[comments].CommentName}
|
||||
{$addon->Comments[comments].CommentName|strip_tags}
|
||||
{else}
|
||||
{$addon->Comments[comments].UserName|strip_tags}
|
||||
{/if}
|
||||
, {$addon->Comments[comments].CommentDate|date_format}</p>
|
||||
<p class="opinions-text">{$addon->Comments[comments].CommentNote|strip_tags}</p>
|
||||
<p class="opinions-helpful"><strong>{$addon->Comments[comments].helpful_yes}</strong> out of <strong>{$addon->Comments[comments].helpful_total}</strong> viewers found this comment helpful<br>
|
||||
Was this comment helpful? <a href="{$config.webpath}/ratecomment.php?aid={$addon->ID}&cid={$addon->Comments[comments].CommentID}&r=yes">Yes</a> | <a href="{$config.webpath}/ratecomment.php?aid={$addon->ID}&cid={$addon->Comments[comments].CommentID}&r=no">No</a></p>
|
||||
|
|
|
@ -323,9 +323,14 @@ class AddOn extends AMO_Object {
|
|||
CommentVote,
|
||||
`helpful-yes` as helpful_yes,
|
||||
`helpful-no` as helpful_no,
|
||||
`helpful-yes` + `helpful-no` as helpful_total
|
||||
`helpful-yes` + `helpful-no` as helpful_total,
|
||||
UserName
|
||||
FROM
|
||||
feedback
|
||||
LEFT JOIN
|
||||
userprofiles
|
||||
ON
|
||||
userprofiles.UserID = feedback.UserID
|
||||
WHERE
|
||||
ID = '{$this->ID}' AND
|
||||
CommentVote IS NOT NULL
|
||||
|
|
Загрузка…
Ссылка в новой задаче