فهرست منبع

online pour toutes les listes

François 6 سال پیش
والد
کامیت
12f8d5405e
1فایلهای تغییر یافته به همراه10 افزوده شده و 1 حذف شده
  1. 10 1
      src/AppBundle/Resources/views/videotheque/liste.html.twig

+ 10 - 1
src/AppBundle/Resources/views/videotheque/liste.html.twig

@@ -46,7 +46,16 @@
 
 
 			</td>
-			<td>{%  if film.authered is defined %}{{ film.authered.username }}{% endif %}</td>
+			<td>
+				{%  if film.authered is defined %}
+					{{ film.authered.username }}
+					{% if film.authered.activeNow %}
+						<span class="badge badge-success">En ligne</span>
+					{% else %}
+						<span class="badge badge-danger">Hors ligne</span>
+					{% endif %}
+				{% endif %}
+			</td>
 			<td><a href="{{ path('videotheque_voirfilm', {'id': film.id}) }}">{{ film.titre }}</a></td>
 			<td>
 			{% if film.realisateurs is defined %}