Revize c478920d
Přidáno uživatelem Ondřej Fibich před asi 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/grid_action/action_logs_none.png'
|
||
)) . ' '.__('No changes in last 30 days');
|
||
return html::image(array
|
||
(
|
||
'src' => 'media/images/icons/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
|
||
return html::image(array
|
||
(
|
||
'src' => 'media/images/icons/grid_action/action_logs.png',
|
||
'title' => __('Last changed date')
|
||
)) . ' <span title="'.__('Last changed date').'">'.$time.'</span>';
|
||
$html = html::image(array
|
||
(
|
||
'src' => 'media/images/icons/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
|
||
return html::anchor('logs/show_object/'.$table.'/'.$object_id, $img)
|
||
. ' <span title="'.__('Last changed date').'">'.$time.'</span>';
|
||
$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;
|
||
}
|
||
|
||
}
|
Také k dispozici: Unified diff
Undo my stupid mistake (I have pushed issue-957 to master instead of develop). Do I have copied files from GitHub master and push them back..