Remove reputation box in user profile
authorJoshua Rüsweg <josh@bastelstu.be>
Sun, 28 Oct 2018 16:35:18 +0000 (17:35 +0100)
committerJoshua Rüsweg <josh@bastelstu.be>
Sun, 28 Oct 2018 16:35:18 +0000 (17:35 +0100)
See #2508

com.woltlab.wcf/templates/userSidebar.tpl
wcfsetup/install/files/style/ui/reactions.scss

index a5dd06e4cbc8a847e42290cc32f462c8a9ae1904..218b0a959680100808c475c3e080f738b03222bf 100644 (file)
@@ -1,22 +1,4 @@
 {if !$user->isProtected()}
-       {if MODULE_LIKE}
-               {assign var=reactionReputation value=$user->positiveReactionsReceived - $user->negativeReactionsReceived}
-               <section class="box reactionReputationBox {if $reactionReputation >= 0}positiveReactionReputationBox{else}negativeReactionReputationBox{/if}" data-static-box-identifier="com.woltlab.wcf.ReactionReputation">
-                       <h2 class="boxTitle"><a href="{link controller='User' object=$user}{/link}#likes">Reputation</a></h2>
-                       
-                       <div class="boxContent">
-                               {if $reactionReputation > 0}
-                                       <span class="positiveReactionCount"><span class="fa fa-plus-circle icon32"></span> {#$reactionReputation}</span>
-                               {elseif $reactionReputation < 0}
-                                       {assign var=reactionReputation value=$reactionReputation*-1}
-                                       <span class="negativeReactionCount"><span class="fa fa-minus-circle icon32"></span> {#$reactionReputation}</span>
-                               {else}
-                                       <span class="neutralReactionCount"><span class="fa fa-plus-circle icon32"></span> {#$reactionReputation}</span>
-                               {/if}
-                       </div>
-               </section>
-       {/if}
-       
        {if $followingCount}
                <section class="box" data-static-box-identifier="com.woltlab.wcf.UserProfileFollowing">
                        <h2 class="boxTitle">{lang}wcf.user.profile.following{/lang} <span class="badge">{#$followingCount}</span></h2>
index 488afb21625b6587e37ce7a5df51e7751fc49051..b998ba917b75ce16fa61e7341c5796aa6ad4238b 100644 (file)
@@ -163,40 +163,6 @@ li.reactCountButton:hover {
        }
 }
 
-.box.reactionReputationBox {
-       &.positiveReactionReputationBox {
-               background-color: $wcfStatusSuccessBackground;
-               color: $wcfStatusSuccessText;
-               
-               .fa {
-                       color: $wcfStatusSuccessText;
-               }
-               
-               .boxTitle > a {
-                       color: $wcfStatusSuccessText;
-               }
-       }
-       
-       &.negativeReactionReputationBox {
-               background-color: $wcfStatusErrorBackground;
-               color: $wcfStatusErrorText;
-               
-               .fa {
-                       color: $wcfStatusErrorText;
-               }
-               
-               .boxTitle > a {
-                       color: $wcfStatusErrorText;
-               }
-       }
-       
-       .boxContent {
-               @include wcfFontHeadline;
-               
-               text-align: center;
-       }
-}
-
 @include screen-sm-down {
        .reactionStatusContainer {
                display: none;