From 42f862eaec70302f3f8fef2f35a5caf875c2f476 Mon Sep 17 00:00:00 2001 From: Ilya Prokopenko Date: Mon, 31 Jan 2022 04:45:56 +0300 Subject: [PATCH] Groups: Fix tabs and div block I have SO many questions... --- Web/Presenters/templates/User/Groups.xml | 78 ++++++++++++------------ 1 file changed, 40 insertions(+), 38 deletions(-) diff --git a/Web/Presenters/templates/User/Groups.xml b/Web/Presenters/templates/User/Groups.xml index 1ad47c8d..8991c0a9 100644 --- a/Web/Presenters/templates/User/Groups.xml +++ b/Web/Presenters/templates/User/Groups.xml @@ -2,39 +2,39 @@ {var iterator = $user->getClubs($page, $admin)} {var count = $user->getClubCount($admin)} -{block title}{_"groups"}{/block} +{block title} + {_groups} +{/block} {block header} -{if !is_null($thisUser) && $user->getId() === $thisUser->getId()} - {_my_groups} + {if !is_null($thisUser) && $user->getId() === $thisUser->getId()} + {_my_groups} {else} - {$user->getCanonicalName()} » {_"groups"} + {$user->getCanonicalName()} » {_groups} {/if} -
-
{/block} {* BEGIN ELEMENTS DESCRIPTION *} {block tabs} - {if !is_null($thisUser) && $user->getId() === $thisUser->getId()} -
- - {_groups} - -
-
- - {_managed} - -
- {/if} + {if !is_null($thisUser) && $user->getId() === $thisUser->getId()} +
+ + {_groups} + +
+
+ + {_managed} + +
+ {/if} {/block} {block size} -
+
Найдено групп ({$thisUser->getClubCount()})
-
+
{/block} {block link|strip|stripHtml} @@ -67,22 +67,24 @@ {/block} {block bottom} -{if !is_null($thisUser) && $user->getId() === $thisUser->getId()} -
-
-

{_"open_new_group"}

- {_"open_group_desc"} -
-
- -
-

{_"search_group"}

- {_"search_group_desc"} -
- - - -
-
-{/if} + {if !is_null($thisUser) && $user->getId() === $thisUser->getId()} +
+
+

{_open_new_group}

+ {_open_group_desc} +
+ +
+
+
+

{_search_group}

+ {_search_group_desc} +
+ + + +
+
+
+ {/if} {/block}