From 3409a17ab8088c0287997ff58cbfe4a5ae9768bc Mon Sep 17 00:00:00 2001 From: Tim Lorsbach Date: Fri, 17 Jul 2026 10:52:03 +0200 Subject: [PATCH] View Package Perm --- bayer/templates/objects/package.html | 1 + templates/actions/objects/package.html | 12 ++ .../view_package_permissions_modal.html | 147 ++++++++++++++++++ 3 files changed, 160 insertions(+) create mode 100644 templates/modals/objects/view_package_permissions_modal.html diff --git a/bayer/templates/objects/package.html b/bayer/templates/objects/package.html index c03be1d2..40ab23dd 100644 --- a/bayer/templates/objects/package.html +++ b/bayer/templates/objects/package.html @@ -4,6 +4,7 @@ {% block action_modals %} {% include "modals/objects/edit_package_modal.html" %} + {% include "modals/objects/view_package_permissions_modal.html" %} {% include "modals/objects/edit_package_permissions_modal.html" %} {% include "modals/objects/publish_package_modal.html" %} {% include "modals/objects/set_license_modal.html" %} diff --git a/templates/actions/objects/package.html b/templates/actions/objects/package.html index 2ad3483d..a49f2c26 100644 --- a/templates/actions/objects/package.html +++ b/templates/actions/objects/package.html @@ -23,6 +23,7 @@ Publish Package +{% endif %}
  • Export Package as JSON
  • +{% if meta.can_edit %}
  • {% endif %} +{% if not meta.can_edit %} +
  • + + View Permissions +
  • +{% endif %} \ No newline at end of file diff --git a/templates/modals/objects/view_package_permissions_modal.html b/templates/modals/objects/view_package_permissions_modal.html new file mode 100644 index 00000000..1fa3262a --- /dev/null +++ b/templates/modals/objects/view_package_permissions_modal.html @@ -0,0 +1,147 @@ +{% load static %} + + + + + + +