aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
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}}",