From f555c781bfa86e0da34d29ea3067c4c0f5db6f2f Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sat, 6 Nov 2021 22:25:11 +0300 Subject: [PATCH] Group: Refactoring for admins (also fixes #252) --- Web/Presenters/templates/Group/Followers.xml | 20 +++++++++++++++++++ Web/Presenters/templates/Group/Statistics.xml | 8 ++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/Web/Presenters/templates/Group/Followers.xml b/Web/Presenters/templates/Group/Followers.xml index f1d63a01..56f041ff 100644 --- a/Web/Presenters/templates/Group/Followers.xml +++ b/Web/Presenters/templates/Group/Followers.xml @@ -17,6 +17,26 @@ {* BEGIN ELEMENTS DESCRIPTION *} +{block tabs} + {if $club->canBeModifiedBy($thisUser)} +
+ + {_main} + +
+
+ + {_followers} + +
+
+ + {_statistics} + +
+ {/if} +{/block} + {block link|strip|stripHtml} /id{$x->getId()} {/block} diff --git a/Web/Presenters/templates/Group/Statistics.xml b/Web/Presenters/templates/Group/Statistics.xml index 0a40154e..470d14e5 100644 --- a/Web/Presenters/templates/Group/Statistics.xml +++ b/Web/Presenters/templates/Group/Statistics.xml @@ -1,15 +1,15 @@ {extends "../@layout.xml"} -{block title}Статистика группы{/block} +{block title}{$club->getName()} » {_statistics}{/block} {block header} - {$club->getName()} » Статистика + {$club->getName()} » {_statistics} {/block} {block content}
@@ -19,7 +19,7 @@