fix eye for credential user table
This commit is contained in:
parent
fe82e261e9
commit
04fda4e9bc
|
@ -117,6 +117,13 @@ class DIDTable(tables.Table):
|
||||||
|
|
||||||
class CredentialsTable(tables.Table):
|
class CredentialsTable(tables.Table):
|
||||||
description = tables.Column(verbose_name="Details", empty_values=())
|
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):
|
def render_description(self, record):
|
||||||
return record.get_description()
|
return record.get_description()
|
||||||
|
@ -131,6 +138,9 @@ class CredentialsTable(tables.Table):
|
||||||
|
|
||||||
return (queryset, True)
|
return (queryset, True)
|
||||||
|
|
||||||
|
def render_view_credential(self):
|
||||||
|
return format_html('<i class="bi bi-eye"></i>')
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = VerificableCredential
|
model = VerificableCredential
|
||||||
template_name = "idhub/custom_table.html"
|
template_name = "idhub/custom_table.html"
|
||||||
|
|
Loading…
Reference in New Issue