From: Alexander Ebert Date: Mon, 15 Jul 2019 13:40:44 +0000 (+0200) Subject: Revert "Removed the display of cumulative likes" X-Git-Tag: 5.2.0_Alpha_2~10^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b07801c08035b23e0ddf484d379b501a4950349;p=GitHub%2FWoltLab%2FWCF.git Revert "Removed the display of cumulative likes" This reverts commit bf6a58ff20fa822c1203f47b5a0eed3e9e00fca7. --- diff --git a/com.woltlab.wcf/templates/boxArticleList.tpl b/com.woltlab.wcf/templates/boxArticleList.tpl index da599cd704..c639d38c59 100644 --- a/com.woltlab.wcf/templates/boxArticleList.tpl +++ b/com.woltlab.wcf/templates/boxArticleList.tpl @@ -14,6 +14,10 @@ {lang article=$boxArticle}wcf.article.articleViews{/lang} {elseif $boxSortField == 'comments'} {$boxArticle->getDiscussionProvider()->getDiscussionCountPhrase()} + {elseif $boxSortField == 'cumulativeLikes'} + {if MODULE_LIKE && $__wcf->getSession()->getPermission('user.like.canViewLike') && ($boxArticle->likes || $boxArticle->dislikes)} + {if $boxArticle->cumulativeLikes > 0}+{elseif $boxArticle->cumulativeLikes == 0}±{/if}{#$boxArticle->cumulativeLikes} + {/if} {/if}