Commit 1b663910 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Don't expand the comment lists on page edit screen (Bug #1317343)



This was causing some problems with tagged posts
- also hiding the 'add comment' link on page edit screen.

And making the comments info show when no comments were on item and
allow comments for artefact was enabled. This is an issue with newer
versions of php.

Also placing some of the template files in the new correct location

Change-Id: I599e16b0899559a3ebcdf68cff53220b1d83f2d6
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 66136667
{$html|safe}
{if $commentcount || $commentcount === 0}
{if $commentcount || $commentcount === '0'}
{$comments|safe}
{/if}
......@@ -23,7 +23,7 @@
</table>
{if $artefact->get('tags')}<div class="tags">{str tag=tags}: {list_tags owner=$artefact->get('owner') tags=$artefact->get('tags')}</div>{/if}
{/if}
{if $commentcount || $commentcount === 0}
{if $commentcount || $commentcount === '0'}
{$comments|safe}
{/if}
<div class="comments">
{if $commentcount > 0}
<a class="commentlink" id="block_{$blockid}" href="{$artefacturl}">{str tag=Comments section=artefact.comment} ({$commentcount})</a>
{if !$editing}<a class="commentlink" id="block_{$blockid}" href="{$artefacturl}">{/if}
{str tag=Comments section=artefact.comment} ({$commentcount})
{if !$editing}</a>{/if}
{else}
{if $allowcomments}
<span id='block_{$blockid}' class="nocomments">{str tag=Comments section=artefact.comment} ({$commentcount})</span>
{/if}
{/if}
{if $allowcomments}
{if !$editing}
<a class="addcomment bar-before" href="{$artefacturl}">{str tag=addcomment section=artefact.comment}</a>
{/if}
{/if}
</div>
<div class="feedbacktablewrapper">
......
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