Skip to content

Commit

Permalink
Show full reason when users request membership (#375)
Browse files Browse the repository at this point in the history
Co-authored-by: Le Bao Hiep <[email protected]>
  • Loading branch information
trantuyet and hieplpvip authored Aug 4, 2024
1 parent 1ec1b22 commit cc2262f
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions templates/organization/requests/pending.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
{% extends "base.html" %}
{% block body %}
<style>
table {
width: 100%;
table-layout: fixed;
}

.reason{
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
white-space: nowrap;
width: 30%;
}

.reason:hover {
overflow: visible;
white-space: unset;
}
</style>
{% include "messages.html" %}
{% include "organization/requests/tabs.html" %}

Expand All @@ -12,7 +31,7 @@
<th>{{ _('User') }}</th>
<th>{{ _('Time') }}</th>
<th>{{ _('State') }}</th>
<th>{{ _('Reason') }}</th>
<th class="reason">{{ _('Reason') }}</th>
{% if formset.can_delete %}
<th>{{ _('Delete?') }}</th>
{% endif %}
Expand All @@ -24,7 +43,7 @@
{{ form.instance.time|date(_("N j, Y, H:i")) }}
</a></td>
<td>{{ form.state }}</td>
<td>{{ form.instance.reason|truncatechars(50) }}</td>
<td class="reason">{{ form.instance.reason }}</td>
{% if formset.can_delete %}
<td>{{ form.DELETE }}</td>
{% endif %}
Expand Down

0 comments on commit cc2262f

Please sign in to comment.