Bug 23991: Don't display empty div if no suggestions exist

If no suggestions exist we should not display an empty tab div

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-07-06 11:30:13 +02:00 committed by Tomas Cohen Arazi
parent 37c80e1686
commit 8052ee34a9
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 3 additions and 3 deletions

View File

@ -684,7 +684,7 @@
</div> <!-- /.dialog -->
[% END # /FOR m %]
[% UNLESS ( notabs ) %]
[% IF suggestions.size && !notabs %]
<div id="suggestiontabs" class="toptabs">
<ul class="nav nav-tabs" role="tablist">
[% FOREACH suggestion IN suggestions %]
@ -713,7 +713,7 @@
[% END # /FOREACH suggestion %]
</ul> <!-- /.ui-tabs-nav -->
<div class="tab-content">
[% END # /UNLESS notabs %]
[% END # IF suggestions.size && !notabs %]
[% FOREACH suggestion IN suggestions %]
[% UNLESS ( notabs ) %]
@ -975,7 +975,7 @@
</form> <!-- /.update_suggestions -->
</div> <!-- /#[% suggestion.suggestiontype | html %] -->
[% END # /FOREACH suggestion %]
[% UNLESS ( notabs ) %]
[% IF suggestions.size && !notabs %]
</div> <!-- /.tab-content -->
</div> <!-- /.notabs -->
[% END # /UNLESS notabs %]