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