diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig
index 9afff0b..a5731f9 100644
--- a/app/Resources/views/base.html.twig
+++ b/app/Resources/views/base.html.twig
@@ -26,6 +26,7 @@
- {{ 'Report a bug'|trans }}
diff --git a/src/Skobkin/Bundle/PointToolsBundle/Controller/EventsController.php b/src/Skobkin/Bundle/PointToolsBundle/Controller/EventsController.php
new file mode 100644
index 0000000..1eab3e7
--- /dev/null
+++ b/src/Skobkin/Bundle/PointToolsBundle/Controller/EventsController.php
@@ -0,0 +1,20 @@
+getDoctrine()->getManager();
+
+ return $this->render('SkobkinPointToolsBundle:Events:last.html.twig', [
+ 'last_events' => $em->getRepository('SkobkinPointToolsBundle:SubscriptionEvent')->getLastSubscriptionEvents(20),
+ ]);
+ }
+}
diff --git a/src/Skobkin/Bundle/PointToolsBundle/Resources/config/routing.yml b/src/Skobkin/Bundle/PointToolsBundle/Resources/config/routing.yml
index a84e4ae..f153f20 100644
--- a/src/Skobkin/Bundle/PointToolsBundle/Resources/config/routing.yml
+++ b/src/Skobkin/Bundle/PointToolsBundle/Resources/config/routing.yml
@@ -15,4 +15,8 @@ user_show:
users_top:
path: /top
- defaults: { _controller: SkobkinPointToolsBundle:User:top }
\ No newline at end of file
+ defaults: { _controller: SkobkinPointToolsBundle:User:top }
+
+events_last:
+ path: /last
+ defaults: { _controller: SkobkinPointToolsBundle:Events:last }
\ No newline at end of file
diff --git a/src/Skobkin/Bundle/PointToolsBundle/Resources/translations/messages.ru.yml b/src/Skobkin/Bundle/PointToolsBundle/Resources/translations/messages.ru.yml
index a46ea28..4b57053 100644
--- a/src/Skobkin/Bundle/PointToolsBundle/Resources/translations/messages.ru.yml
+++ b/src/Skobkin/Bundle/PointToolsBundle/Resources/translations/messages.ru.yml
@@ -5,6 +5,7 @@ Toggle navigation: Переключить навигацию
Main: Главная
Top: Топ
Report a bug: Сообщить об ошибке
+Last: Последнее
# Подвал
Source code: Исходный код
diff --git a/src/Skobkin/Bundle/PointToolsBundle/Resources/views/Events/last.html.twig b/src/Skobkin/Bundle/PointToolsBundle/Resources/views/Events/last.html.twig
new file mode 100644
index 0000000..8ab37a6
--- /dev/null
+++ b/src/Skobkin/Bundle/PointToolsBundle/Resources/views/Events/last.html.twig
@@ -0,0 +1,55 @@
+{% extends "::base.html.twig" %}
+
+{% block content %}
+ {# TODO classes #}
+
+ {% if last_events|length > 0 %}
+
+
+
+
+
+
+
+
+ {{ 'Subscriber'|trans }} |
+ {{ 'Author'|trans }} |
+ {{ 'Action'|trans }} |
+ {{ 'Date'|trans }} |
+
+
+
+ {% for event in last_events %}
+
+
+ @{{ event.subscriber.login }}
+ |
+
+ @{{ event.author.login }}
+ |
+
+
+ |
+
+ {# Use DateTime helper: https://sonata-project.org/bundles/intl/master/doc/reference/datetime.html #}
+ {{ event.date|date('d F Y H:i:s') }}
+ |
+
+ {% endfor %}
+
+
+
+
+
+
+ {% else %}
+
{{ 'No log data found'|trans }}
+ {% endif %}
+
+{% endblock %}
diff --git a/src/Skobkin/Bundle/PointToolsBundle/Resources/views/Main/index.html.twig b/src/Skobkin/Bundle/PointToolsBundle/Resources/views/Main/index.html.twig
index 7bfe4cc..2a2c3c9 100644
--- a/src/Skobkin/Bundle/PointToolsBundle/Resources/views/Main/index.html.twig
+++ b/src/Skobkin/Bundle/PointToolsBundle/Resources/views/Main/index.html.twig
@@ -15,58 +15,6 @@
- {# TODO classes #}
-
- {% if last_events|length > 0 %}
-
-
-
-
-
-
-
-
- {{ 'Subscriber'|trans }} |
- {{ 'Author'|trans }} |
- {{ 'Action'|trans }} |
- {{ 'Date'|trans }} |
-
-
-
- {% for event in last_events %}
-
-
- @{{ event.subscriber.login }}
- |
-
- @{{ event.author.login }}
- |
-
-
- |
-
- {# Use DateTime helper: https://sonata-project.org/bundles/intl/master/doc/reference/datetime.html #}
- {{ event.date|date('d F Y H:i:s') }}
- |
-
- {% endfor %}
-
-
-
-
-
-
- {% else %}
-
{{ 'No log data found'|trans }}
- {% endif %}
-
-