Explorar el Código

Correction tooltip et badges

François Drouhard hace 3 años
padre
commit
3e64353308
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      templates/videotheque/liste.html.twig

+ 2 - 2
templates/videotheque/liste.html.twig

@@ -93,8 +93,8 @@
 					{% endif %}
 					<td>
 						<a href="{{ path('videotheque_voirfilm', {'id': film.id}) }}"><span data-bs-toggle="tooltip" data-placement="right" title="{{ film.information }}">{{ film.titre }}</span></a>
-						{% if film.new %}<span class="badge bg-secondary text-dark">New</span>{% endif %}
-						{% if film.nbComs %}<span class="badge bg-secondary text-dark" data-bs-toggle="tooltip" data-original-title="{{ film.nbComs }} commentaire(s)">{{ film.nbComs }}</span>{% endif %}
+						{% if film.new %}<span class="badge bg-success">New</span>{% endif %}
+						{% if film.nbComs %}<span class="badge bg-warning rounded-pill" data-bs-toggle="tooltip" title="{{ film.nbComs }} commentaire(s)">{{ film.nbComs }}</span>{% endif %}
 
 					</td>
 					<td>