From b5524b6b7b586e6f94308c050b80059eb9099b44 Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Mon, 7 Feb 2022 14:06:47 +0200 Subject: [PATCH] Users: Fix page with list of user's groups --- Web/Presenters/templates/@listView.xml | 4 +-- Web/Presenters/templates/User/Groups.xml | 31 ++++-------------------- 2 files changed, 7 insertions(+), 28 deletions(-) diff --git a/Web/Presenters/templates/@listView.xml b/Web/Presenters/templates/@listView.xml index e6bfaa8a..e6d02350 100644 --- a/Web/Presenters/templates/@listView.xml +++ b/Web/Presenters/templates/@listView.xml @@ -27,8 +27,8 @@ - {ifset infotable} - {include infotable, x => $dat} + {ifset infoTable} + {include infoTable, x => $dat} {else} diff --git a/Web/Presenters/templates/User/Groups.xml b/Web/Presenters/templates/User/Groups.xml index 3a92bed8..f1926d1e 100644 --- a/Web/Presenters/templates/User/Groups.xml +++ b/Web/Presenters/templates/User/Groups.xml @@ -32,7 +32,7 @@ {/block} {block size} -
+
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()} {tr("groups_list", $thisUser->getClubCount())} @@ -51,6 +51,8 @@ Фотография группы {/block} +{block name}{/block} + {block infoTable} @@ -73,11 +75,11 @@ {block actions} {var clubPinned = $thisUser->isClubPinned($x)} {if $x->canBeModifiedBy($thisUser ?? NULL)} - + {_check_community} {if ($clubPinned || $thisUser->getPinnedClubCount() <= 10)} - + {if $clubPinned} {_remove_from_left_menu} {else} @@ -116,26 +118,3 @@ {/if} {/block} - -{block bottom} - {if !is_null($thisUser) && $user->getId() === $thisUser->getId()} -
-
-

{_open_new_group}

- {_open_group_desc} -
- - -
-
-

{_search_group}

- {_search_group_desc} -
- - - - -
-
- {/if} -{/block} \ No newline at end of file