mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-30 04:13:01 +00:00
Merge branch 'beta' into 'master'
Display real user name in the Soge credits list/detail See merge request bde/nk20!135
This commit is contained in:
commit
3cabcf40e7
@ -147,4 +147,4 @@ class SogeCreditTable(tables.Table):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = SogeCredit
|
model = SogeCredit
|
||||||
fields = ('user', 'amount', 'valid', )
|
fields = ('user', 'user__last_name', 'user__first_name', 'amount', 'valid', )
|
||||||
|
@ -11,8 +11,14 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<dl class="row">
|
<dl class="row">
|
||||||
<dt class="col-xl-6 text-right">{% trans 'user'|capfirst %}</dt>
|
<dt class="col-xl-6 text-right">{% trans 'last name'|capfirst %}</dt>
|
||||||
<dd class="col-xl-6"><a href="{% url 'member:user_detail' pk=object.user.pk %}">{{ object.user }}</a></dd>
|
<dd class="col-xl-6">{{ object.user.last_name }}</dd>
|
||||||
|
|
||||||
|
<dt class="col-xl-6 text-right">{% trans 'first name'|capfirst %}</dt>
|
||||||
|
<dd class="col-xl-6">{{ object.user.first_name }}</dd>
|
||||||
|
|
||||||
|
<dt class="col-xl-6 text-right">{% trans 'username'|capfirst %}</dt>
|
||||||
|
<dd class="col-xl-6"><a href="{% url 'member:user_detail' pk=object.user.pk %}">{{ object.user.username }}</a></dd>
|
||||||
|
|
||||||
{% if "note.view_note_balance"|has_perm:object.user.note %}
|
{% if "note.view_note_balance"|has_perm:object.user.note %}
|
||||||
<dt class="col-xl-6 text-right">{% trans 'balance'|capfirst %}</dt>
|
<dt class="col-xl-6 text-right">{% trans 'balance'|capfirst %}</dt>
|
||||||
|
Loading…
Reference in New Issue
Block a user