diff options
author | rvelices <rv-github@modusoptimus.com> | 2014-01-21 22:50:59 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2014-01-21 22:50:59 +0000 |
commit | b4247f00af3f358cedf3a702f774d5953e9d5fb7 (patch) | |
tree | 45a73e31046f00b03e1e71d399dea15b9477f564 /admin/themes/default/template | |
parent | d3d0dc1eaf7d0e541340c10d2e834754a69b6a22 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | admin/themes/default/template/rating_user.tpl | 15 |
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}> <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> |