Changeset 13086 for trunk/admin


Ignore:
Timestamp:
02/10/12 18:02:54 (8 years ago)
Author:
mistic100
Message:

feature 2564: small changes in infos list

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/picture_modify.php

    r13084 r13086  
    302302$intro_vars = array( 
    303303  'file' => sprintf(l10n('Original file : %s'), $row['file']), 
    304   'added' => sprintf(l10n('Posted %s on %s by %s'), time_since($row['date_available'], 'month'), format_date($row['date_available'], false, false), $row['added_by']), 
     304  'add_date' => sprintf(l10n('Posted %s on %s'), time_since($row['date_available'], 'year'), format_date($row['date_available'], false, false)), 
     305  'added_by' => sprintf(l10n('Added by %s'), $row['added_by']), 
    305306  'size' => $row['width'].'×'.$row['height'].' pixels, '.sprintf('%.2f', $row['filesize']/1024).'MB', 
    306   'hits' => sprintf(l10n('%d visits'), $row['hit']), 
     307  'stats' => sprintf(l10n('Visited %d times'), $row['hit']), 
    307308  'id' => sprintf(l10n('Numeric identifier : %d'), $row['id']), 
    308309  ); 
     
    318319  list($row['nb_rates']) = pwg_db_fetch_row(pwg_query($query)); 
    319320   
    320   $intro_vars['rate'] = sprintf(l10n('Rated %d times, score : %f'), $row['nb_rates'], $row['rating_score']); 
     321  $intro_vars['stats'].= ', '.sprintf(l10n('Rated %d times, score : %.2f'), $row['nb_rates'], $row['rating_score']); 
    321322} 
    322323 
  • trunk/admin/themes/default/template/picture_modify.tpl

    r13084 r13086  
    4747          <img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail"> 
    4848        </td> 
    49         <td id="albumLinks" style="width:500px;vertical-align:top;"> 
    50           <ul> 
     49        <td id="albumLinks" style="width:400px;vertical-align:top;"> 
     50          <ul style="padding-left:15px;margin:0;"> 
    5151            <li>{$INTRO.file}</li> 
    52             <li>{$INTRO.added}</li> 
     52            <li>{$INTRO.add_date}</li> 
     53            <li>{$INTRO.added_by}</li> 
    5354            <li>{$INTRO.size}</li> 
    54             <li>{$INTRO.hits}</li> 
    55             {if $INTRO.rate}<li>{$INTRO.rate}</li>{/if} 
     55            <li>{$INTRO.stats}</li> 
    5656            <li>{$INTRO.id}</li> 
    5757          </ul> 
    5858        </td> 
    5959        <td style="vertical-align:top;"> 
    60           <ul style="padding-left:15px;"> 
     60          <ul style="padding-left:15px;margin:0;"> 
    6161          {if isset($U_JUMPTO) } 
    6262            <li><a href="{$U_JUMPTO}">{'jump to photo'|@translate} →</a></li> 
Note: See TracChangeset for help on using the changeset viewer.