activity: Add view to see the ledger entries for a customer plan.

Adds a link to the plan ledger view in the current plan information
shown in the support views. Link is not shown if the plan is 100%
sponsored, e.g., the Community plan.

Adds a formatted header area to the activity table template so
that it's easy to add useful information to these activity views.
This commit is contained in:
Lauryn Menard
2024-08-28 16:27:10 +02:00
committed by Tim Abbott
parent 704423787b
commit d54ca85de2
8 changed files with 102 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ from corporate.views.installation_activity import (
get_installation_activity,
get_integrations_activity,
)
from corporate.views.plan_activity import get_plan_ledger
from corporate.views.portico import (
app_download_link_redirect,
apps_view,
@@ -105,6 +106,7 @@ i18n_urlpatterns: Any = [
path("user_activity/<user_profile_id>/", get_user_activity),
path("activity/remote", get_remote_server_activity),
path("activity/remote/support", remote_servers_support, name="remote_servers_support"),
path("activity/plan_ledger/<plan_id>/", get_plan_ledger),
]
v1_api_and_json_patterns = [