diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-07 10:23:38 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-07 10:23:38 +0000 |
commit | a65cdd21f234c8a07c90e54f9e9a0b1f33a972c2 (patch) | |
tree | a462d06cc0f34b56d547b07c5df3005b10260d1b /mod/logbrowser/views/default/object | |
parent | f4ac146f927ff75822baadbb15f1beea89eaace6 (diff) | |
download | elgg-a65cdd21f234c8a07c90e54f9e9a0b1f33a972c2.tar.gz elgg-a65cdd21f234c8a07c90e54f9e9a0b1f33a972c2.tar.bz2 |
Initial changes to log browser
git-svn-id: https://code.elgg.org/elgg/trunk@1745 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/logbrowser/views/default/object')
-rw-r--r-- | mod/logbrowser/views/default/object/logwrapper.php | 61 |
1 files changed, 43 insertions, 18 deletions
diff --git a/mod/logbrowser/views/default/object/logwrapper.php b/mod/logbrowser/views/default/object/logwrapper.php index 673d732e8..8450c9b66 100644 --- a/mod/logbrowser/views/default/object/logwrapper.php +++ b/mod/logbrowser/views/default/object/logwrapper.php @@ -1,18 +1,43 @@ -<?php - /** - * Elgg log browser. - * - * @package ElggLogBrowser - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Marcus Povey - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ - - if (get_input('search_viewtype') == "gallery") { - echo elgg_view('logbrowser/gallery',$vars); - } else { - echo elgg_view("logbrowser/listing",$vars); - } - -?>
\ No newline at end of file +<?php
+ /**
+ * Elgg log browser.
+ *
+ * @package ElggLogBrowser
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+ $entry = $vars['entity']->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();
+
+ //echo elgg_view_listing($icon, $info);
+?>
+ <table class="log_entry">
+ <tr>
+ <td class="log_entry_user">
+ <?php if ($by) {echo "<a href=\"".$by->getURL()."\">{$by->name}</a>"; } else echo " "; ?>
+ <td>
+ <td class="log_entry_time">
+ <?php echo date('r', $entry->time_created ); ?>
+ </td>
+ <td class="log_entry_item">
+ <?php
+ if ($obj_url) $info .= "<a href=\"$obj_url\">";
+ $info .= "{$entry->object_class}";
+ if ($obj_url) $info .= "</a>";
+ ?>
+ </td>
+ <td class="log_entry_action">
+ <div class="log_entry_action_<?php echo $entry->event; ?>">
+ <?php echo elgg_echo($entry->event); ?>
+ </div>
+ </td>
+ </tr>
+ </table>
\ No newline at end of file |