aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-03 18:10:55 -0800
committerfriendica <info@friendica.com>2015-02-03 18:10:55 -0800
commit17ffe122b309610208d769f0e2b41f53fcf9d254 (patch)
treeb21e6080c586418a5327c5a50c9bf69538cf2c6c /view/tpl
parent5cb2f55dbbe715219dd18c60345e341ed478a753 (diff)
downloadvolse-hubzilla-17ffe122b309610208d769f0e2b41f53fcf9d254.tar.gz
volse-hubzilla-17ffe122b309610208d769f0e2b41f53fcf9d254.tar.bz2
volse-hubzilla-17ffe122b309610208d769f0e2b41f53fcf9d254.zip
ratings - mopping up, most everything but directory sync implemented
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/direntry.tpl6
-rwxr-xr-xview/tpl/js_strings.tpl3
2 files changed, 6 insertions, 3 deletions
diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl
index 461c5dcde..1b84bca56 100755
--- a/view/tpl/direntry.tpl
+++ b/view/tpl/direntry.tpl
@@ -15,11 +15,11 @@
<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*}}
+{{if $entry.viewrate}}
<div id="dir-rating-wrapper-{{$entry.id}}" class="directory-rating" >{{if $entry.total_ratings}}<a href="ratings/{{$entry.hash}}"><button class="btn btn-default">{{$entry.total_ratings}}</button></a>{{/if}}
-<button class="btn btn-default" onclick="doRatings('{{$entry.hash}}'); return false;" ><i class="icon-pencil"></i></button>
+{{if $entry.canrate}}<button class="btn btn-default" onclick="doRatings('{{$entry.hash}}'); return false;" ><i class="icon-pencil"></i></button>{{/if}}
</div>
-{{*/if*}}
+{{/if}}
{{if $entry.public_forum}}
<div class="contact-forum">
{{$entry.forum_label}} @{{$entry.nickname}}+
diff --git a/view/tpl/js_strings.tpl b/view/tpl/js_strings.tpl
index eb78c669f..9cfd84cf8 100755
--- a/view/tpl/js_strings.tpl
+++ b/view/tpl/js_strings.tpl
@@ -16,6 +16,9 @@
'permschange' : "{{$permschange}}",
'closeAll' : "{{$closeAll}}",
'nothingnew' : "{{$nothingnew}}",
+ 'rating_desc' : "{{$rating_desc}}",
+ 'rating_val' : "{{$rating_val}}",
+ 'rating_text' : "{{$rating_text}}",
't01' : "{{$t01}}",
't02' : "{{$t02}}",