web: fix link to provider list on overview page
This commit is contained in:
		| @ -3,6 +3,7 @@ from django.contrib.messages.views import SuccessMessageMixin | |||||||
| from django.core.cache import cache | from django.core.cache import cache | ||||||
| from django.http.request import HttpRequest | from django.http.request import HttpRequest | ||||||
| from django.http.response import HttpResponse | from django.http.response import HttpResponse | ||||||
|  | from django.urls.base import reverse_lazy | ||||||
| from django.utils.translation import gettext as _ | from django.utils.translation import gettext as _ | ||||||
| from django.views.generic import FormView | from django.views.generic import FormView | ||||||
| from structlog.stdlib import get_logger | from structlog.stdlib import get_logger | ||||||
| @ -20,7 +21,7 @@ class PolicyCacheClearView(AdminRequiredMixin, SuccessMessageMixin, FormView): | |||||||
|     form_class = PolicyCacheClearForm |     form_class = PolicyCacheClearForm | ||||||
|  |  | ||||||
|     template_name = "generic/form_non_model.html" |     template_name = "generic/form_non_model.html" | ||||||
|     success_url = "/" |     success_url = reverse_lazy("authentik_core:shell") | ||||||
|     success_message = _("Successfully cleared Policy cache") |     success_message = _("Successfully cleared Policy cache") | ||||||
|  |  | ||||||
|     def post(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: |     def post(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: | ||||||
| @ -39,7 +40,7 @@ class FlowCacheClearView(AdminRequiredMixin, SuccessMessageMixin, FormView): | |||||||
|     form_class = FlowCacheClearForm |     form_class = FlowCacheClearForm | ||||||
|  |  | ||||||
|     template_name = "generic/form_non_model.html" |     template_name = "generic/form_non_model.html" | ||||||
|     success_url = "/" |     success_url = reverse_lazy("authentik_core:shell") | ||||||
|     success_message = _("Successfully cleared Flow cache") |     success_message = _("Successfully cleared Flow cache") | ||||||
|  |  | ||||||
|     def post(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: |     def post(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: | ||||||
|  | |||||||
| @ -36,7 +36,7 @@ export class AdminOverviewPage extends LitElement { | |||||||
|                 <ak-aggregate-card class="pf-l-gallery__item pf-m-4-col" icon="pf-icon pf-icon-server" header="Apps with most usage" style="grid-column-end: span 2;grid-row-end: span 3;"> |                 <ak-aggregate-card class="pf-l-gallery__item pf-m-4-col" icon="pf-icon pf-icon-server" header="Apps with most usage" style="grid-column-end: span 2;grid-row-end: span 3;"> | ||||||
|                     <ak-top-applications-table></ak-top-applications-table> |                     <ak-top-applications-table></ak-top-applications-table> | ||||||
|                 </ak-aggregate-card> |                 </ak-aggregate-card> | ||||||
|                 <ak-admin-status-card-provider class="pf-l-gallery__item pf-m-4-col" icon="pf-icon pf-icon-plugged" header="Providers" headerLink="#/administration/providers/"> |                 <ak-admin-status-card-provider class="pf-l-gallery__item pf-m-4-col" icon="pf-icon pf-icon-plugged" header="Providers" headerLink="#/providers/"> | ||||||
|                 </ak-admin-status-card-provider> |                 </ak-admin-status-card-provider> | ||||||
|                 <ak-admin-status-card-policy-unbound class="pf-l-gallery__item pf-m-4-col" icon="pf-icon pf-icon-infrastructure" header="Policies" headerLink="#/administration/policies/"> |                 <ak-admin-status-card-policy-unbound class="pf-l-gallery__item pf-m-4-col" icon="pf-icon pf-icon-infrastructure" header="Policies" headerLink="#/administration/policies/"> | ||||||
|                 </ak-admin-status-card-policy-unbound> |                 </ak-admin-status-card-policy-unbound> | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer