Commit e444f0df authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't show feedback heading unless the view already has comments or comments are allowed


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 148fd405
......@@ -16,6 +16,7 @@
</div>
<div class="viewfooter cb">
{if $feedback->count || $enablecomments}
<table id="feedbacktable" class="fullwidth table">
<thead><tr><th>{str tag="feedback" section="artefact.comment"}</th></tr></thead>
<tbody>
......@@ -23,6 +24,7 @@
</tbody>
</table>
{$feedback->pagination}
{/if}
<div id="viewmenu">
{include file="view/viewmenu.tpl"}
</div>
......
......@@ -22,6 +22,7 @@
{if $tags}<div class="tags">{str tag=tags}: {list_tags owner=$owner tags=$tags}</div>{/if}
<div>{$releaseform}</div>
{if $view_group_submission_form}<div>{$view_group_submission_form}</div>{/if}
{if $feedback->count || $enablecomments}
<table id="feedbacktable" class="fullwidth table">
<thead><tr><th>{str tag="feedback" section="artefact.comment"}</th></tr></thead>
<tbody>
......@@ -29,6 +30,7 @@
</tbody>
</table>
{$feedback->pagination}
{/if}
<div id="viewmenu">
{include file="view/viewmenu.tpl" enablecomments=$enablecomments}
</div>
......
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