Merge pull request #496 from th-h/thh-plugins-emptygroup

Suppress empty groups in plugin list.
This commit is contained in:
Matthias Mees 2017-04-13 12:43:08 +02:00 committed by GitHub
commit 594c8177f5

View File

@ -79,7 +79,7 @@
<span class="msg_notice"><span class="icon-attention-circled" aria-hidden="true"></span> {$CONST.NO_UPDATES}</span> <span class="msg_notice"><span class="icon-attention-circled" aria-hidden="true"></span> {$CONST.NO_UPDATES}</span>
{else} {else}
{foreach $pluggroups AS $pluggroup => $groupstack} {foreach $pluggroups AS $pluggroup => $groupstack}
{if $only_group && $pluggroup != $only_group}{continue}{/if} {if $only_group && $pluggroup != $only_group || empty($pluggroup)}{continue}{/if}
<h3>{foreach $groupnames as $available_group => $available_name}{if $pluggroup == $available_group}{$available_name}{/if}{/foreach}</h3> <h3>{foreach $groupnames as $available_group => $available_name}{if $pluggroup == $available_group}{$available_name}{/if}{/foreach}</h3>
{if $only_group == 'UPGRADE' && $pluggroups['UPGRADE']|@count > 1} {if $only_group == 'UPGRADE' && $pluggroups['UPGRADE']|@count > 1}
<button id="updateAll">Update All</button> <button id="updateAll">Update All</button>