diff --git a/src/Skobkin/Bundle/PointToolsBundle/Resources/public/css/main.css b/src/Skobkin/Bundle/PointToolsBundle/Resources/public/css/main.css index 2818740..167a190 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Resources/public/css/main.css +++ b/src/Skobkin/Bundle/PointToolsBundle/Resources/public/css/main.css @@ -38,6 +38,10 @@ body > .container { margin-top: 30px; } +.user-subscriptions-log { + margin-top: 30px; +} + h4.panel-title a { text-decoration: none; } diff --git a/src/Skobkin/Bundle/PointToolsBundle/Resources/views/User/show.html.twig b/src/Skobkin/Bundle/PointToolsBundle/Resources/views/User/show.html.twig index 6d3f344..947131a 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Resources/views/User/show.html.twig +++ b/src/Skobkin/Bundle/PointToolsBundle/Resources/views/User/show.html.twig @@ -9,68 +9,77 @@
-
-
- -
-
- + {% if subscribers|length > 0 %} +
+
+ +
+
+ +
-
+ {% else %} + + {% endif %}
-
-
-
- -
-
- - - - - - - - - - {% for event in log %} +
+ {% if log|length > 0 %} +
{{ 'User'|trans }}{{ 'Action'|trans }}{{ 'Date'|trans }}
+ - - - + + + - {% endfor %} - -
- @{{ event.subscriber.login }} - - - - {# Use DateTime helper: https://sonata-project.org/bundles/intl/master/doc/reference/datetime.html #} - {{ event.date|date('H:i:s d F Y') }} - {{ 'User'|trans }}{{ 'Action'|trans }}{{ 'Date'|trans }}
+ + + {% for event in log %} + + + @{{ event.subscriber.login }} + + + + + + {# Use DateTime helper: https://sonata-project.org/bundles/intl/master/doc/reference/datetime.html #} + {{ event.date|date('H:i:s d F Y') }} + + + {% endfor %} + + +
-
+ {% else %} + + {% endif %}
+ {% endblock %}