fix eye for credential user table

This commit is contained in:
Cayo Puigdefabregas 2024-02-02 10:12:11 +01:00
parent fe82e261e9
commit 04fda4e9bc
1 changed files with 10 additions and 0 deletions

View File

@ -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('<i class="bi bi-eye"></i>')
class Meta:
model = VerificableCredential
template_name = "idhub/custom_table.html"