mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-06-20 01:44:42 +02:00
add sortable tables, orange for no named places
This commit is contained in:
parent
344e71d38f
commit
b60b527ee1
4 changed files with 21 additions and 20 deletions
|
@ -41,7 +41,13 @@
|
|||
{% for commerce in stats.places %}
|
||||
<tr>
|
||||
<td style="background-color: {{ commerce.hasAddress() ? 'yellowgreen' : 'transparent' }};">
|
||||
<a href="{{ path('app_admin_commerce', {'id': commerce.id}) }}"> {% if commerce.name |length %} {{ commerce.name |slice(0, 20) }}... {% else %} (lieu sans nom) {% endif %}</a>
|
||||
<a href="{{ path('app_admin_commerce', {'id': commerce.id}) }}">
|
||||
{% if not commerce.name |length %}
|
||||
<span class="no-name">
|
||||
(lieu sans nom)
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if commerce.name |length > 50 %} {{ commerce.name |slice(0, 50) }}... {% else %} {{ commerce.name }} {% endif %}</a>
|
||||
|
||||
</td>
|
||||
<td style="background-color: {{ commerce.hasAddress() ? 'yellowgreen' : 'transparent' }};">{{ commerce.address }}</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue