diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-17 00:24:04 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-17 00:24:04 +0000 |
commit | fb143a5701f15a8e9792c25ec7c0a030786896d6 (patch) | |
tree | f014b07dad8e23d07959e2a25b1f19612d581d00 /views/default/object/admin_notice.php | |
parent | 3d3ecfa207a47198fca5658bb6aa6e27cb0f13da (diff) | |
download | elgg-fb143a5701f15a8e9792c25ec7c0a030786896d6.tar.gz elgg-fb143a5701f15a8e9792c25ec7c0a030786896d6.tar.bz2 |
Fixes #2242. Can now delete admin notices manually.
git-svn-id: http://code.elgg.org/elgg/trunk@8737 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/object/admin_notice.php')
-rw-r--r-- | views/default/object/admin_notice.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/views/default/object/admin_notice.php b/views/default/object/admin_notice.php index 1a162ce4d..45485a1dc 100644 --- a/views/default/object/admin_notice.php +++ b/views/default/object/admin_notice.php @@ -6,6 +6,15 @@ if (isset($vars['entity']) && elgg_instanceof($vars['entity'], 'object', 'admin_notice')) { $notice = $vars['entity']; $message = $notice->description; - echo "<p>$message</p>"; + + $delete = elgg_view('output/url', array( + 'href' => "action/admin/delete_admin_notice?guid=$notice->guid", + 'text' => '<span class="elgg-icon elgg-icon-delete"></span>', + 'encode' => false, + 'is_action' => true, + 'class' => 'elgg-admin-notice' + )); + + echo "<p>$message$delete</p>"; } |