Ignore:
Timestamp:
01/21/14 23:50:59 (6 years ago)
Author:
rvelices
Message:

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)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/admin/themes/default/template/rating_user.tpl

    r26838 r26901  
    3131        <input type="text" size="5" name="f_min_rates" value="{$F_MIN_RATES}"> 
    3232        </label> 
     33        <label>{'Consensus deviation'|@translate} 
     34        <input type="text" size="5" name="consensus_top_number" value="{$CONSENSUS_TOP_NUMBER}"> 
     35        {'Best rated'|@translate} 
     36        </label> 
     37 
    3338        <input type="submit" value="{'Submit'|@translate}"> 
    3439        </label> 
     
    4449        aaSorting: [[4,'desc']], 
    4550        aoColumnDefs: [ 
     51                /*{ 
     52                        aTargets: ["dtc_user"] 
     53                },*/ 
    4654                { 
    47                         aTargets: ["dtc_user"], 
     55                        aTargets: ["dtc_date"], 
     56                        asSorting: ["desc","asc"] 
    4857                }, 
    4958                { 
     
    93102<tr class="throw"> 
    94103        <td class="dtc_user">{'Username'|@translate}</td> 
     104        <td class="dtc_date">{'Last'|@translate}</td> 
    95105        <td class="dtc_stat">{'Number of rates'|@translate}</td> 
    96106        <td class="dtc_stat">{'Average rate'|@translate}</td> 
    97107        <td class="dtc_stat">{'Variation'|@translate}</td> 
    98108        <td class="dtc_stat">{'Consensus deviation'|@translate|@replace:' ':'<br>'}</td> 
     109        <td class="dtc_stat">{'Consensus deviation'|@translate|@replace:' ':'<br>'} {$CONSENSUS_TOP_NUMBER}</td> 
    99110{foreach from=$available_rates item=rate} 
    100111        <td class="dtc_rate">{$rate}</td> 
     
    106117<tr> 
    107118        <td>{$user}</td> 
     119        <td>{$rating.last_date}</td> 
    108120        <td>{$rating.count}</td> 
    109121        <td>{$rating.avg|@number_format:2}</td> 
    110122        <td>{$rating.cv|@number_format:3}</td> 
    111123        <td>{$rating.cd|@number_format:3}</td> 
     124        <td>{if !empty($rating.cdtop)}{$rating.cdtop|@number_format:3}{/if}</td> 
    112125        {foreach from=$rating.rates item=rates key=rate} 
    113126        <td>{if !empty($rates)} 
Note: See TracChangeset for help on using the changeset viewer.