From f93ce10e56f335cfe1678ea93ca971f77eb839e1 Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 29 Jul 2008 16:42:04 +0000 Subject: Added basic log browser. updateclient & logbrowser are switched on by default in new installs. git-svn-id: https://code.elgg.org/elgg/trunk@1579 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/logbrowser/gallery.php | 37 ++++++++++++++++++++++ mod/logbrowser/views/default/logbrowser/icon.php | 29 +++++++++++++++++ .../views/default/logbrowser/listing.php | 37 ++++++++++++++++++++++ mod/logbrowser/views/default/object/logwrapper.php | 18 +++++++++++ 4 files changed, 121 insertions(+) create mode 100644 mod/logbrowser/views/default/logbrowser/gallery.php create mode 100644 mod/logbrowser/views/default/logbrowser/icon.php create mode 100644 mod/logbrowser/views/default/logbrowser/listing.php create mode 100644 mod/logbrowser/views/default/object/logwrapper.php (limited to 'mod/logbrowser/views') diff --git a/mod/logbrowser/views/default/logbrowser/gallery.php b/mod/logbrowser/views/default/logbrowser/gallery.php new file mode 100644 index 000000000..1c8de10e6 --- /dev/null +++ b/mod/logbrowser/views/default/logbrowser/gallery.php @@ -0,0 +1,37 @@ +entry; + + + $by = get_entity($entry->performed_by_guid); + $object = get_object_from_log_entry($entry->id); + + if (is_callable(array($object, 'getURL'))) + $obj_url = $object->getURL(); + + $icon = elgg_view( + "logbrowser/icon", array( + 'entity' => $vars['entity'], + 'size' => 'small', + ) + ); + + $info .= "

"; + if ($obj_url) $info .= ""; + $info .= "{$entry->object_class}"; + if ($obj_url) $info .= ""; + $info .= " " . elgg_echo($entry->event) . "

"; + + $info .= "
" . elgg_echo('by') . " getURL()."\">{$by->name} ".date('r', $entry->time_created )."
"; + + echo elgg_view_listing($icon, $info); +?> \ No newline at end of file diff --git a/mod/logbrowser/views/default/logbrowser/icon.php b/mod/logbrowser/views/default/logbrowser/icon.php new file mode 100644 index 000000000..233442f50 --- /dev/null +++ b/mod/logbrowser/views/default/logbrowser/icon.php @@ -0,0 +1,29 @@ + + +
+ /> +
\ No newline at end of file diff --git a/mod/logbrowser/views/default/logbrowser/listing.php b/mod/logbrowser/views/default/logbrowser/listing.php new file mode 100644 index 000000000..1c8de10e6 --- /dev/null +++ b/mod/logbrowser/views/default/logbrowser/listing.php @@ -0,0 +1,37 @@ +entry; + + + $by = get_entity($entry->performed_by_guid); + $object = get_object_from_log_entry($entry->id); + + if (is_callable(array($object, 'getURL'))) + $obj_url = $object->getURL(); + + $icon = elgg_view( + "logbrowser/icon", array( + 'entity' => $vars['entity'], + 'size' => 'small', + ) + ); + + $info .= "

"; + if ($obj_url) $info .= ""; + $info .= "{$entry->object_class}"; + if ($obj_url) $info .= ""; + $info .= " " . elgg_echo($entry->event) . "

"; + + $info .= "
" . elgg_echo('by') . " getURL()."\">{$by->name} ".date('r', $entry->time_created )."
"; + + echo elgg_view_listing($icon, $info); +?> \ No newline at end of file diff --git a/mod/logbrowser/views/default/object/logwrapper.php b/mod/logbrowser/views/default/object/logwrapper.php new file mode 100644 index 000000000..673d732e8 --- /dev/null +++ b/mod/logbrowser/views/default/object/logwrapper.php @@ -0,0 +1,18 @@ + \ No newline at end of file -- cgit v1.2.3