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"