From 04fda4e9bc14867a0c61f6de9f3c522d481c008d Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 2 Feb 2024 10:12:11 +0100 Subject: [PATCH] fix eye for credential user table --- idhub/user/tables.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/idhub/user/tables.py b/idhub/user/tables.py index 28045e9..eacdcb8 100644 --- a/idhub/user/tables.py +++ b/idhub/user/tables.py @@ -117,6 +117,13 @@ class DIDTable(tables.Table): class CredentialsTable(tables.Table): description = tables.Column(verbose_name="Details", empty_values=()) + view_credential = ButtonColumn( + linkify={ + "viewname": "idhub:user_credential", + "args": [tables.A("pk")] + }, + orderable=False + ) def render_description(self, record): return record.get_description() @@ -131,6 +138,9 @@ class CredentialsTable(tables.Table): return (queryset, True) + def render_view_credential(self): + return format_html('') + class Meta: model = VerificableCredential template_name = "idhub/custom_table.html"