mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 11:26:26 -06:00
Added style to BaseTable's empty_text
This commit is contained in:
parent
1db66776ea
commit
09b3aa2487
@ -24,7 +24,7 @@
|
|||||||
{% empty %}
|
{% empty %}
|
||||||
{% if table.empty_text %}
|
{% if table.empty_text %}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="{{ table.columns|length }}">{{ table.empty_text }}</td>
|
<td colspan="{{ table.columns|length }}" class="text-center text-muted">— {{ table.empty_text }} —</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -14,7 +14,7 @@ class BaseTable(tables.Table):
|
|||||||
|
|
||||||
# Set default empty_text if none was provided
|
# Set default empty_text if none was provided
|
||||||
if self.empty_text is None:
|
if self.empty_text is None:
|
||||||
self.empty_text = 'No {} found.'.format(self._meta.model._meta.verbose_name_plural)
|
self.empty_text = 'No {} found'.format(self._meta.model._meta.verbose_name_plural)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
attrs = {
|
attrs = {
|
||||||
|
Loading…
Reference in New Issue
Block a user