diff --git a/Web/Presenters/AdminPresenter.php b/Web/Presenters/AdminPresenter.php index 39845ae4..65c93598 100644 --- a/Web/Presenters/AdminPresenter.php +++ b/Web/Presenters/AdminPresenter.php @@ -23,7 +23,7 @@ final class AdminPresenter extends OpenVKPresenter private function warnIfNoCommerce(): void { if(!OPENVK_ROOT_CONF["openvk"]["preferences"]["commerce"]) - $this->flash("warn", "Коммерция отключена системным администратором", "Настройки ваучеров и подарков будут сохранены, но не будут оказывать никакого влияния."); + $this->flash("warn", tr("admin_commerce_disabled"), tr("admin_commerce_disabled_desc")); } private function searchResults(object $repo, &$count) diff --git a/Web/Presenters/templates/@layout.xml b/Web/Presenters/templates/@layout.xml index c00df970..1869c038 100644 --- a/Web/Presenters/templates/@layout.xml +++ b/Web/Presenters/templates/@layout.xml @@ -173,7 +173,7 @@ {var $canAccessHelpdesk = $thisUser->getChandlerUser()->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0)} {var $menuLinksAvaiable = sizeof(OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links']) > 0 && $thisUser->getLeftMenuItemStatus('links')}
- Админ-панель + {_admin} Helpdesk {if $helpdeskTicketNotAnsweredCount > 0} ({$helpdeskTicketNotAnsweredCount}) diff --git a/Web/Presenters/templates/Admin/@layout.xml b/Web/Presenters/templates/Admin/@layout.xml index 5213802c..92de0cc0 100644 --- a/Web/Presenters/templates/Admin/@layout.xml +++ b/Web/Presenters/templates/Admin/@layout.xml @@ -1,3 +1,4 @@ +{var $instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']} @@ -6,7 +7,7 @@ {var $css = file_get_contents(OPENVK_ROOT . "/Web/static/js/node_modules/@atlassian/aui/dist/aui/aui-prototyping.css")} {str_replace("fonts/", "/assets/packages/static/openvk/js/node_modules/@atlassian/aui/dist/aui/fonts/", $css)|noescape} -{$flashMessage->msg|noescape}
{$follower->getId()} | -
-
+ {if $isMain}
+
+
+ |
- {$follower->isFemale() ? "Женский" : "Мужской"} | -{$follower->getShortCode() ?? "(отсутствует)"} | -{$follower->getRegistrationTime()} | -- - - - | -
{$follower->getId()} | ++ + + + + + + {$follower->getCanonicalName()} + + {_admin_banned} + | +{$follower->isFemale() ? tr("female") : tr("male")} | +{$follower->getShortCode() ?? "(" . tr("none") . ")"} | +{$follower->getRegistrationTime()} | ++ + + + | +
# | -Имя | -Автор | -Описание | -Короткий адрес | -Действия | +ID | +{_admin_title} | +{_admin_author} | +{_admin_description} | +{_admin_shortcode} | +{_admin_actions} | {$club->getDescription() ?? "(не указано)"} | +{$club->getDescription() ?? "(" . tr("none") . ")"} | {$club->getShortCode()} | - + | @@ -63,11 +65,7 @@
---|
Наборов подарков нету. Чтобы создать подарок, создайте набор.
+{_admin_giftsets_none}