Explorar o código

Remplacement du badge enligne par glyphe user

François %!s(int64=6) %!d(string=hai) anos
pai
achega
995ddba3bf

+ 2 - 2
src/AppBundle/Resources/views/security/liste.html.twig

@@ -23,9 +23,9 @@
             <tr>
                 <td >
                     {% if user.activeNow %}
-                        <span class="badge badge-success">En ligne</span>
+                        <i class="fa fa-user text-success"></i>
                     {% else %}
-                        <span class="badge badge-secondary">Hors ligne</span>
+                        <i class="fa fa-user text-secondary"></i>
                     {% endif %}
                 </td>
                 <td>{{ user.username }}</td>

+ 7 - 5
src/AppBundle/Resources/views/videotheque/liste.html.twig

@@ -46,12 +46,14 @@
 			</td>
 			<td>
 				{%  if film.authered is defined %}
+                    {% if film.authered.activeNow %}
+                        {#<span class="badge badge-success">En ligne</span>#}
+						<i class="fa fa-user text-success"></i>
+                    {% else %}
+                        {#<span class="badge badge-secondary">Hors ligne</span>#}
+						<i class="fa fa-user text-secondary"></i>
+                    {% endif %}
 					{{ film.authered.username }}
-					{% if film.authered.activeNow %}
-						<span class="badge badge-success">En ligne</span>
-					{% else %}
-						<span class="badge badge-secondary">Hors ligne</span>
-					{% endif %}
 				{% endif %}
 			</td>
 			<td><a href="{{ path('videotheque_voirfilm', {'id': film.id}) }}">{{ film.titre }}</a></td>