From 988ac34752bc8ac030756fb41b0234fdd0a0e59e Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sat, 4 Nov 2017 23:20:00 +0300 Subject: [PATCH] #38 fix. User privacy status icons on user page. --- .../PointToolsBundle/Resources/translations/messages.ru.yml | 2 ++ .../PointToolsBundle/Resources/views/User/show.html.twig | 4 +++- web/css/main.css | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Resources/translations/messages.ru.yml b/src/Skobkin/Bundle/PointToolsBundle/Resources/translations/messages.ru.yml index d45b953..00d9568 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Resources/translations/messages.ru.yml +++ b/src/Skobkin/Bundle/PointToolsBundle/Resources/translations/messages.ru.yml @@ -38,6 +38,8 @@ Old login: Старый логин New login: Новый логин User was removed from Point.im. It could be caused by Terms of Service violation.: > Пользователь был удалён с Point.im. Это могло быть вызвано нарушением условий использования. +Non-public: Непубличный пользователь +Whitelist-only: Только для белого списка No subscribers data found: Информация о подписчиках отсутствует No rename log data found: Лог переименований отсутствует 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 fabc804..70d82c7 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Resources/views/User/show.html.twig +++ b/src/Skobkin/Bundle/PointToolsBundle/Resources/views/User/show.html.twig @@ -3,10 +3,12 @@ {% block header_title %}{{ user.login }} @ Point Tools{% endblock %} {% block content %} -

+

{# TODO: Add class with image size #} {{ user.login }} + {% if not user.public %}{% endif %} + {% if user.whitelistOnly %}{% endif %}

{% if user.removed %} diff --git a/web/css/main.css b/web/css/main.css index d849ba6..09818ee 100644 --- a/web/css/main.css +++ b/web/css/main.css @@ -72,7 +72,7 @@ h4.panel-title a { } -h1.user-login a { +h1#user-login a { text-decoration: none; margin-left: 10px; }