aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/rating_user.tpl
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-01-21 22:50:06 +0000
committerrvelices <rv-github@modusoptimus.com>2014-01-21 22:50:06 +0000
commiteecb7cf42c71082e3f93cecaf1ebff2a673f72a6 (patch)
tree5d74cae2ba84460e0e08c96c23b2e75670deddb5 /admin/themes/default/template/rating_user.tpl
parent9848d104e01901ada5d23a65cdb884f6b04ac25b (diff)
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/trunk@26900 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/themes/default/template/rating_user.tpl15
1 files changed, 14 insertions, 1 deletions
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 @@
<label>{'Number of rates'|@translate}&gt;
<input type="text" size="5" name="f_min_rates" value="{$F_MIN_RATES}">
</label>
+ <label>{'Consensus deviation'|@translate}
+ <input type="text" size="5" name="consensus_top_number" value="{$CONSENSUS_TOP_NUMBER}">
+ {'Best rated'|@translate}
+ </label>
+
<input type="submit" value="{'Submit'|@translate}">
</label>
<input type="hidden" name="page" value="rating_user">
@@ -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){
<thead>
<tr class="throw">
<td class="dtc_user">{'Username'|@translate}</td>
+ <td class="dtc_date">{'Last'|@translate}</td>
<td class="dtc_stat">{'Number of rates'|@translate}</td>
<td class="dtc_stat">{'Average rate'|@translate}</td>
<td class="dtc_stat">{'Variation'|@translate}</td>
<td class="dtc_stat">{'Consensus deviation'|@translate|@replace:' ':'<br>'}</td>
+ <td class="dtc_stat">{'Consensus deviation'|@translate|@replace:' ':'<br>'} {$CONSENSUS_TOP_NUMBER}</td>
{foreach from=$available_rates item=rate}
<td class="dtc_rate">{$rate}</td>
{/foreach}
@@ -105,10 +116,12 @@ function del(elt,uid,aid){
{foreach from=$ratings item=rating key=user}
<tr>
<td>{$user}</td>
+ <td>{$rating.last_date}</td>
<td>{$rating.count}</td>
<td>{$rating.avg|@number_format:2}</td>
<td>{$rating.cv|@number_format:3}</td>
<td>{$rating.cd|@number_format:3}</td>
+ <td>{if !empty($rating.cdtop)}{$rating.cdtop|@number_format:3}{/if}</td>
{foreach from=$rating.rates item=rates key=rate}
<td>{if !empty($rates)}
{capture assign=rate_over}{foreach from=$rates item=rate_arr}<img src="{$image_urls[$rate_arr.id].tn}" alt="thumb-{$rate_arr.id}" title="{$rate_arr.date}"></img>