Revize 74a7dbca
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/helpers/action_logs.php | ||
---|---|---|
if ($log_model->count_all_object_logs($table, $object_id) == 0)
|
||
{
|
||
//no modification in last 30 days
|
||
return html::image(array
|
||
(
|
||
'src' => 'media/images/icons/action_logs_none.png'
|
||
)).
|
||
' '.__('No changes in last 30 days');
|
||
return html::image(array
|
||
(
|
||
'src' => 'media/images/icons/grid_action/action_logs_none.png'
|
||
)) . ' '.__('No changes in last 30 days');
|
||
}
|
||
|
||
// get last modification time of object
|
||
... | ... | |
if (!Controller::instance()->acl_check_view('Logs_Controller', 'logs'))
|
||
{
|
||
// only last modification date
|
||
$html = html::image(array
|
||
(
|
||
'src' => 'media/images/icons/action_logs.png',
|
||
'title' => __('Last changed date')
|
||
)).
|
||
' <span title="'.__('Last changed date').'">'.$time.'</span>';
|
||
return html::image(array
|
||
(
|
||
'src' => 'media/images/icons/grid_action/action_logs.png',
|
||
'title' => __('Last changed date')
|
||
)) . ' <span title="'.__('Last changed date').'">'.$time.'</span>';
|
||
}
|
||
else
|
||
{
|
||
$img = html::image(array
|
||
(
|
||
'src' => 'media/images/icons/grid_action/action_logs.png',
|
||
'title' => __('Show object action logs')
|
||
));
|
||
// link to details
|
||
$html = html::anchor('logs/show_object/'.$table.'/'.$object_id,
|
||
html::image(array
|
||
(
|
||
'src' => 'media/images/icons/action_logs.png',
|
||
'title' => __('Show object action logs')
|
||
))).
|
||
' <span title="'.__('Last changed date').'">'.$time.'</span>';
|
||
return html::anchor('logs/show_object/'.$table.'/'.$object_id, $img)
|
||
. ' <span title="'.__('Last changed date').'">'.$time.'</span>';
|
||
}
|
||
|
||
return $html;
|
||
}
|
||
|
||
}
|
Také k dispozici: Unified diff
Merge from SVN branch 1.2.