瀏覽代碼

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 %}