From b4247f00af3f358cedf3a702f774d5953e9d5fb7 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 21 Jan 2014 22:50:59 +0000 Subject: merge -r26900 from trunk to 2.6 admin rating user improvements - add last rate date for user - add consensus deviation but only based on the best rated photos (e.g. how much this user tries to change the best rated photos) git-svn-id: http://piwigo.org/svn/branches/2.6@26901 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/rating_user.tpl | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'admin/themes/default/template') diff --git a/admin/themes/default/template/rating_user.tpl b/admin/themes/default/template/rating_user.tpl index a37944aa3..3e7f1d508 100644 --- a/admin/themes/default/template/rating_user.tpl +++ b/admin/themes/default/template/rating_user.tpl @@ -30,6 +30,11 @@ + + @@ -43,8 +48,12 @@ var oTable = jQuery('#rateTable').dataTable({ bPaginate: false, aaSorting: [[4,'desc']], aoColumnDefs: [ + /*{ + aTargets: ["dtc_user"] + },*/ { - aTargets: ["dtc_user"], + aTargets: ["dtc_date"], + asSorting: ["desc","asc"] }, { aTargets: ["dtc_stat"], @@ -92,10 +101,12 @@ function del(elt,uid,aid){ {'Username'|@translate} + {'Last'|@translate} {'Number of rates'|@translate} {'Average rate'|@translate} {'Variation'|@translate} {'Consensus deviation'|@translate|@replace:' ':'
'} + {'Consensus deviation'|@translate|@replace:' ':'
'} {$CONSENSUS_TOP_NUMBER} {foreach from=$available_rates item=rate} {$rate} {/foreach} @@ -105,10 +116,12 @@ function del(elt,uid,aid){ {foreach from=$ratings item=rating key=user} {$user} + {$rating.last_date} {$rating.count} {$rating.avg|@number_format:2} {$rating.cv|@number_format:3} {$rating.cd|@number_format:3} + {if !empty($rating.cdtop)}{$rating.cdtop|@number_format:3}{/if} {foreach from=$rating.rates item=rates key=rate} {if !empty($rates)} {capture assign=rate_over}{foreach from=$rates item=rate_arr}thumb-{$rate_arr.id} -- cgit v1.2.3