mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 14:54:57 +00:00
make tables more readable in templates
This commit is contained in:
@@ -15,12 +15,20 @@
|
||||
<tr>
|
||||
<td>{{ entity.startDate|format_datetime('medium') }}</td>
|
||||
<td>
|
||||
{{ (entity.endDate is null)
|
||||
? "crud.admin_user_scope_history.index.today"|trans
|
||||
: entity.endDate|format_datetime('medium') }}
|
||||
{% if entity.endDate is not null %}
|
||||
{{ entity.endDate|format_datetime('medium') }}
|
||||
{% else %}
|
||||
<i class="opacity-50">{{ "crud.admin_user_scope_history.index.today"|trans }}</i>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ entity.user.usernameCanonical }}</td>
|
||||
<td>{{ entity.scope.name|localize_translatable_string }}</td>
|
||||
<td>
|
||||
{% if entity.scope %}
|
||||
{{ entity.scope.name|localize_translatable_string }}
|
||||
{% else %}
|
||||
<i class="opacity-50">{{ 'crud.admin_user_scope_history.index.undefined'|trans }}</i>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
@@ -15,12 +15,20 @@
|
||||
<tr>
|
||||
<td>{{ entity.startDate|format_datetime('medium') }}</td>
|
||||
<td>
|
||||
{{ (entity.endDate is null)
|
||||
? "crud.admin_user_job_history.index.today"|trans
|
||||
: entity.endDate|format_datetime('medium') }}
|
||||
{% if entity.endDate is not null %}
|
||||
{{ entity.endDate|format_datetime('medium') }}
|
||||
{% else %}
|
||||
<i class="opacity-50">{{ "crud.admin_user_job_history.index.today"|trans }}</i>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ entity.user.usernameCanonical }}</td>
|
||||
<td>{{ entity.job.label|localize_translatable_string }}</td>
|
||||
<td>
|
||||
{% if entity.job %}
|
||||
{{ entity.job.label|localize_translatable_string }}
|
||||
{% else %}
|
||||
<i class="opacity-50">{{ 'crud.admin_user_job_history.index.undefined'|trans }}</i>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user