Browse code
Tweak to the way voting is displayed
Now, only the links display a number of votes and the users are not
scored. This is to avoid gaming the rating system by just re-posting
high-scoring links.
Showing 3 changed files
- static/js/directives/user-badge/user-badge.html
- static/js/directives/user-badge/user-badge.js
- static/partials/subscription.html
... | ... |
@@ -1,4 +1,4 @@ |
1 | 1 |
<a class="avatar-image" ng-href="/user/{{ poster }}" title="{{poster}}"> |
2 | 2 |
<gravatar-image class="poster-avatar" user-name="{{poster}}"></gravatar-image> |
3 |
- <span class="poster-handle de-emphasize">{{poster}}{{rep === undefined || rep === null? '' : ' ('+rep+')'}}</span> |
|
3 |
+ <span class="poster-handle de-emphasize">{{poster}}</span> |
|
4 | 4 |
</a> |
... | ... |
@@ -16,7 +16,7 @@ angular.module('marrowApp.directives.userBadge', ['marrowApp.utils']) |
16 | 16 |
.directive('userBadge', function() { |
17 | 17 |
return { |
18 | 18 |
scope: { |
19 |
- poster: '@', rep: '@', |
|
19 |
+ poster: '@' |
|
20 | 20 |
}, |
21 | 21 |
templateUrl: '/js/directives/user-badge/user-badge.html', |
22 | 22 |
controller: function($scope) { |
... | ... |
@@ -38,7 +38,7 @@ |
38 | 38 |
</span> |
39 | 39 |
<a href="{{marrow.url}}" ng-class="{'de-emphasize':marrow.title}" >{{marrow.url}}</a> |
40 | 40 |
</div> |
41 |
- <user-badge poster="{{marrow.poster}}" rep="{{friends.reps.reputation[marrow.poster]}}"></user-badge> |
|
41 |
+ <user-badge poster="{{marrow.poster}}"></user-badge> |
|
42 | 42 |
</li> |
43 | 43 |
</ul> |
44 | 44 |
<a ng-click="backAPage()" class="more-link"/>More</a> |