1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

First pass on a display of users trusting you, added a corresponding right

This commit is contained in:
Nicolas Margulies
2022-04-14 19:07:33 +02:00
parent 18a5b65a1c
commit 4fb0b7d736
4 changed files with 47 additions and 8 deletions

View File

@ -159,7 +159,7 @@ class TrustTable(tables.Table):
template_name = 'django_tables2/bootstrap4.html'
show_header = False
trusted = tables.Column(attrs={'td': {'class': 'text_center'}})
trusted = tables.Column(attrs={'td': {'class': 'text-center'}})
delete_col = tables.TemplateColumn(
template_code=DELETE_TEMPLATE,
@ -172,6 +172,19 @@ class TrustTable(tables.Table):
else '')}},
verbose_name=_("Delete"),)
class TrustedTable(tables.Table):
class Meta:
attrs = {
'class': 'table table condensed table-striped',
'id': 'trusted_table'
}
Model = Trust
fields = ("trusting",)
template_name = "django_tables2/bootstrap4.html"
show_header = False
trusting = tables.Column(attrs={'td': {'class': 'text-center'}})
class AliasTable(tables.Table):
class Meta: