diff --git a/Web/Presenters/templates/components/post/microblogpost.xml b/Web/Presenters/templates/components/post/microblogpost.xml index b5893981..8c22b51b 100644 --- a/Web/Presenters/templates/components/post/microblogpost.xml +++ b/Web/Presenters/templates/components/post/microblogpost.xml @@ -99,40 +99,34 @@ {/if}
- {if !($forceNoShareLink ?? false)} - -
- {if $post->getRepostCount() > 0}{$post->getRepostCount()}{/if} -
- {/if} + +
+ {if $post->getRepostCount() > 0}{$post->getRepostCount()}{/if} +
- {if !($forceNoLike ?? false)} - {var liked = $post->hasLikeFrom($thisUser)} - -
- {if $post->getLikesCount() > 0}{$post->getLikesCount()}{/if} -
- {/if} + {var liked = $post->hasLikeFrom($thisUser)} + +
+ {if $post->getLikesCount() > 0}{$post->getLikesCount()}{/if} +
{/if} - {if !($forceNoCommentsLink ?? false)} -
- {if $commentsCount > 3} - {_view_other_comments} - {/if} - {foreach $comments as $comment} - {include "../comment.xml", comment => $comment, $compact => true} - {/foreach} -
- {var commentsURL = "/al_comments.pl/create/posts/" . $post->getId()} - {include "../textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), post => $post} -
+
+ {if $commentsCount > 3} + {_view_other_comments} + {/if} + {foreach $comments as $comment} + {include "../comment.xml", comment => $comment, $compact => true} + {/foreach} +
+ {var commentsURL = "/al_comments.pl/create/posts/" . $post->getId()} + {include "../textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), post => $post}
- {/if} +
diff --git a/Web/Presenters/templates/components/post/oldpost.xml b/Web/Presenters/templates/components/post/oldpost.xml index f59a9cf7..ad256ff9 100644 --- a/Web/Presenters/templates/components/post/oldpost.xml +++ b/Web/Presenters/templates/components/post/oldpost.xml @@ -91,35 +91,29 @@ {_"comments"} {/if} - {/if} - - {if !($forceNoCommentsLink ?? false) && !($forceNoShareLink ?? false)}  |  {/if} - {if !($forceNoShareLink ?? false)} - - {if $post->getRepostCount() > 0} - {_"share"} - ({$post->getRepostCount()}) - {else} - {_"share"} - {/if} - - {/if} + + {if $post->getRepostCount() > 0} + {_"share"} + ({$post->getRepostCount()}) + {else} + {_"share"} + {/if} + + - {if !($forceNoLike ?? false)} -
- {var liked = $post->hasLikeFrom($thisUser)} - -
- {if $post->getLikesCount() > 0}{$post->getLikesCount()}{/if} -
-
- {/if} +
+ {var liked = $post->hasLikeFrom($thisUser)} + +
+ {if $post->getLikesCount() > 0}{$post->getLikesCount()}{/if} +
+