Commit d5833dbe authored by jonnybradley's avatar jonnybradley

[FIX] comments: When showing newest first put the "post new comment" button at the top

parent 96826724
Pipeline #50131277 failed with stages
in 27 minutes and 1 second
......@@ -18,6 +18,15 @@
{/block}
{block name="content"}
{if $allow_post and $prefs.comments_sort_mode eq 'commentDate_desc'}
<div class="submit">
<div class="buttons comment-form {if $prefs.wiki_comments_form_displayed_default eq 'y'}autoshow{/if}">
<a class="btn btn-secondary custom-handling" href="{service controller=comment action=post type=$type objectId=$objectId}" data-target="#add-comment-zone-{$objectId|replace:' ':''|replace:',':''|escape:'attr'}">{tr}Post new comment{/tr}</a>
</div>
</div>
<div id="add-comment-zone-{$objectId|replace:' ':''|replace:',':''|escape:'attr'}" class="add-comment-zone"></div>
{/if}
{if $cant gt 0}
{include file="comment/list_inner.tpl"}
<script type="text/javascript">
......@@ -31,7 +40,7 @@
{/remarksbox}
{/if}
{if $allow_post}
{if $allow_post and $prefs.comments_sort_mode neq 'commentDate_desc'}
<div class="submit">
<div class="buttons comment-form {if $prefs.wiki_comments_form_displayed_default eq 'y'}autoshow{/if}">
<a class="btn btn-secondary custom-handling" href="{service controller=comment action=post type=$type objectId=$objectId}" data-target="#add-comment-zone-{$objectId|replace:' ':''|replace:',':''|escape:'attr'}">{tr}Post new comment{/tr}</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment