diff options
Diffstat (limited to '')
-rw-r--r-- | admin/picture_modify.php | 7 | ||||
-rw-r--r-- | admin/themes/default/template/picture_modify.tpl | 12 |
2 files changed, 10 insertions, 9 deletions
diff --git a/admin/picture_modify.php b/admin/picture_modify.php index 4de5f00e8..db8e08aae 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -301,9 +301,10 @@ while ($user_row = pwg_db_fetch_assoc($result)) $intro_vars = array( 'file' => sprintf(l10n('Original file : %s'), $row['file']), - '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']), + 'add_date' => sprintf(l10n('Posted %s on %s'), time_since($row['date_available'], 'year'), format_date($row['date_available'], false, false)), + 'added_by' => sprintf(l10n('Added by %s'), $row['added_by']), 'size' => $row['width'].'×'.$row['height'].' pixels, '.sprintf('%.2f', $row['filesize']/1024).'MB', - 'hits' => sprintf(l10n('%d visits'), $row['hit']), + 'stats' => sprintf(l10n('Visited %d times'), $row['hit']), 'id' => sprintf(l10n('Numeric identifier : %d'), $row['id']), ); @@ -317,7 +318,7 @@ SELECT ;'; list($row['nb_rates']) = pwg_db_fetch_row(pwg_query($query)); - $intro_vars['rate'] = sprintf(l10n('Rated %d times, score : %f'), $row['nb_rates'], $row['rating_score']); + $intro_vars['stats'].= ', '.sprintf(l10n('Rated %d times, score : %.2f'), $row['nb_rates'], $row['rating_score']); } $template->assign('INTRO', $intro_vars); diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl index dc6ab8d2c..101678328 100644 --- a/admin/themes/default/template/picture_modify.tpl +++ b/admin/themes/default/template/picture_modify.tpl @@ -46,18 +46,18 @@ pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#da <td id="albumThumbnail"> <img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail"> </td> - <td id="albumLinks" style="width:500px;vertical-align:top;"> - <ul> + <td id="albumLinks" style="width:400px;vertical-align:top;"> + <ul style="padding-left:15px;margin:0;"> <li>{$INTRO.file}</li> - <li>{$INTRO.added}</li> + <li>{$INTRO.add_date}</li> + <li>{$INTRO.added_by}</li> <li>{$INTRO.size}</li> - <li>{$INTRO.hits}</li> - {if $INTRO.rate}<li>{$INTRO.rate}</li>{/if} + <li>{$INTRO.stats}</li> <li>{$INTRO.id}</li> </ul> </td> <td style="vertical-align:top;"> - <ul style="padding-left:15px;"> + <ul style="padding-left:15px;margin:0;"> {if isset($U_JUMPTO) } <li><a href="{$U_JUMPTO}">{'jump to photo'|@translate} →</a></li> {/if} |