aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-02 23:58:44 -0800
committerfriendica <info@friendica.com>2015-02-02 23:58:44 -0800
commit6067274b51cfec0d14ad4a68675d07a2e6a39387 (patch)
treec704b86ccd7951bc6349d6d0c9b45533776f50a6 /view/tpl
parent77379029f566fc759651fdaa01f5bfaf2ad9db28 (diff)
downloadvolse-hubzilla-6067274b51cfec0d14ad4a68675d07a2e6a39387.tar.gz
volse-hubzilla-6067274b51cfec0d14ad4a68675d07a2e6a39387.tar.bz2
volse-hubzilla-6067274b51cfec0d14ad4a68675d07a2e6a39387.zip
start to tie ratings to the directory page
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/direntry.tpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl
index 6ba86a085..450bddd95 100755
--- a/view/tpl/direntry.tpl
+++ b/view/tpl/direntry.tpl
@@ -15,9 +15,9 @@
<div class='contact-info'>
<div class="contact-name" id="directory-name-{{$entry.id}}" ><a href='{{$entry.profile_link}}' >{{$entry.name}}</a>{{if $entry.online}} <i class="icon-asterisk online-now" title="{{$entry.online}}"></i>{{/if}}</div>
-{{if $entry.rateme}}
-<div id="dir-rating-wrapper-{{$entry.id}}" style="float:right; width: 20%;">
-62 ratings<br />
+{{*if $entry.rateme*}}
+<div id="dir-rating-wrapper-{{$entry.id}}" style="float:right; width: 20%;">{{if $entry.total_ratings}}<a href="prep/{{$entry.hash}}">
+{{$entry.total_ratings}}</a>{{/if}}<br />
<div id="dir-rating-slider-{{$entry.id}}" class="dir-slider" style="height: 32px; margin-right:10px;">
<input id="dir-rating-range-{{$entry.id}}" type="text" value="0" name="fake-rating-{{$entry.id}}" style="display: none;">
</div>
@@ -26,7 +26,7 @@
<script>
$("#dir-rating-range-{{$entry.id}}").jRange({ from: -10, to: 10, step: 1, width:'100%', showLabels: false, showScale: true, scale : [ '-10','-5','0','5','10' ], onstatechange: function(v) { $("#contact-rating-mirror").val(v); } });
</script>
-{{/if}}
+{{*/if*}}
{{if $entry.public_forum}}
<div class="contact-forum">
{{$entry.forum_label}} @{{$entry.nickname}}+