+getContext()->error !== false) { ?>
+
+
+
+
+getContext()->error != "NOT_FOUND") { ?>
+
+
+
+
+
+ Your packet has been edited.
+ Use the navigation to the left to move to another page.
+
+
+
+
diff --git a/src/templates/Packet/View.phtml b/src/templates/Packet/View.phtml
index e9762bc4..24c3d6de 100644
--- a/src/templates/Packet/View.phtml
+++ b/src/templates/Packet/View.phtml
@@ -52,6 +52,13 @@ if ($object) {
$this->opengraph->attach(new Pair("url", $url));
+$edit_url = Common::relativeUrlToAbsolute("/packet/edit?id=" . urlencode($object_id));
+$delete_url = Common::relativeUrlToAbsolute("/packet/delete?id=" . urlencode($object_id));
+$edit_visible = ($logged_in && ($logged_in->getOptionsBitmask()
+ & User::OPTION_ACL_PACKET_MODIFY));
+$delete_visible = ($logged_in && ($logged_in->getOptionsBitmask()
+ & User::OPTION_ACL_PACKET_DELETE));
+
$this->additional_css[] = "/a/packet.css";
$this->additional_css[] = "/a/comments.css";
if ($logged_in) $this->additional_css[] = "/a/forms.css";
@@ -62,6 +69,12 @@ require("./header.inc.phtml");