From b9c9c45bbf27f34a61d496946c35c2708a378ab7 Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Fri, 24 Dec 2021 16:58:04 +0200 Subject: [PATCH] Wall: Fix "Reply" button in the feeds --- Web/Presenters/templates/Wall/Feed.xml | 8 ++-- Web/Presenters/templates/Wall/HashtagFeed.xml | 8 ++-- Web/Presenters/templates/Wall/Wall.xml | 44 +++++++++---------- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Web/Presenters/templates/Wall/Feed.xml b/Web/Presenters/templates/Wall/Feed.xml index ec82bbe3..517cc0a0 100644 --- a/Web/Presenters/templates/Wall/Feed.xml +++ b/Web/Presenters/templates/Wall/Feed.xml @@ -46,8 +46,8 @@ }); -{/block} -{if isset($thisUser) && $thisUser->hasMicroblogEnabled()} - {script "js/al_comments.js"} -{/if} + {if isset($thisUser) && $thisUser->hasMicroblogEnabled()} + {script "js/al_comments.js"} + {/if} +{/block} diff --git a/Web/Presenters/templates/Wall/HashtagFeed.xml b/Web/Presenters/templates/Wall/HashtagFeed.xml index a58ca4e4..96da865a 100644 --- a/Web/Presenters/templates/Wall/HashtagFeed.xml +++ b/Web/Presenters/templates/Wall/HashtagFeed.xml @@ -16,8 +16,8 @@ {/foreach} {include "../components/paginator.xml", conf => $paginatorConf} -{/block} -{if isset($thisUser) && $thisUser->hasMicroblogEnabled()} - {script "js/al_comments.js"} -{/if} + {if isset($thisUser) && $thisUser->hasMicroblogEnabled()} + {script "js/al_comments.js"} + {/if} +{/block} diff --git a/Web/Presenters/templates/Wall/Wall.xml b/Web/Presenters/templates/Wall/Wall.xml index 9b6fe6b4..2bcc40ac 100644 --- a/Web/Presenters/templates/Wall/Wall.xml +++ b/Web/Presenters/templates/Wall/Wall.xml @@ -13,28 +13,28 @@ {/block} {block content} -
-
-
- {include "../components/textArea.xml", route => "/wall$owner/makePost"} -
- -
- {if sizeof($posts) > 0} - {foreach $posts as $post} - - - {include "../components/post.xml", post => $post, commentSection => true} - {/foreach} - {include "../components/paginator.xml", conf => $paginatorConf} - {else} - {_no_posts_abstract} - {/if} +
+
+
+ {include "../components/textArea.xml", route => "/wall$owner/makePost"} +
+ +
+ {if sizeof($posts) > 0} + {foreach $posts as $post} + + + {include "../components/post.xml", post => $post, commentSection => true} + {/foreach} + {include "../components/paginator.xml", conf => $paginatorConf} + {else} + {_no_posts_abstract} + {/if} +
-
-{/block} -{if isset($thisUser) && $thisUser->hasMicroblogEnabled()} - {script "js/al_comments.js"} -{/if} + {if isset($thisUser) && $thisUser->hasMicroblogEnabled()} + {script "js/al_comments.js"} + {/if} +{/block}