Skip to content
Permalink
Browse files

Link to detail view

  • Loading branch information...
flack committed Jun 4, 2019
1 parent d2977d4 commit 69753ab1538779bd34bb3e9261c7f7b5453b26aa
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/midgard/admin/asgard/style/midgard_admin_asgard_trash_type.php
@@ -3,7 +3,7 @@
printf($data['l10n']->get('%s trash'), midgard_admin_asgard_plugin::get_type_label($data['type']));
echo "</h2>";
function midgard_admin_asgard_trash_type_show($object, $indent = 0, $prefix = '', $enable_undelete = true)
function midgard_admin_asgard_trash_type_show($router, $object, $indent = 0, $prefix = '', $enable_undelete = true)
{
static $shown = [];
static $url_prefix = '';
@@ -32,7 +32,7 @@ function midgard_admin_asgard_trash_type_show($object, $indent = 0, $prefix = ''
$object_label = $object->guid;
}
echo "{$prefix} <td class=\"checkbox\"><input type=\"checkbox\" name=\"undelete[]\"{$disabled} value=\"{$object->guid}\" id=\"guid_{$object->guid}\" /></td>\n";
echo "{$prefix} <td class=\"label\" style=\"padding-left: {$indent}px\"><label for=\"guid_{$object->guid}\">{$icon}" . $object_label . "</label></td>\n";
echo "{$prefix} <td class=\"label\" style=\"padding-left: {$indent}px\"><a href=\"". $router->generate('object_deleted', ['guid' =>$object->guid]) . "\">{$icon} " . $object_label . "</a></td>\n";
echo "{$prefix} <td class=\"nowrap\">" . strftime('%x %X', strtotime($object->metadata->revised)) . "</td>\n";
if (!empty($revisor->guid)) {
@@ -51,7 +51,7 @@ function midgard_admin_asgard_trash_type_show($object, $indent = 0, $prefix = ''
if ( count($children) < 10
|| isset($_GET['show_children'][$object->guid][$type])) {
foreach ($children as $child) {
midgard_admin_asgard_trash_type_show($child, $child_indent, "{$prefix} ", false);
midgard_admin_asgard_trash_type_show($router, $child, $child_indent, "{$prefix} ", false);
}
} else {
echo "{$prefix} <tr>\n";
@@ -98,7 +98,7 @@ function midgard_admin_asgard_trash_type_show($object, $indent = 0, $prefix = ''
echo " <tbody>\n";
foreach ($data['trash'] as $object) {
midgard_admin_asgard_trash_type_show($object, 0, ' ');
midgard_admin_asgard_trash_type_show($data['router'], $object, 0, ' ');
}
echo " </tbody>\n";

0 comments on commit 69753ab

Please sign in to comment.
You can’t perform that action at this time.