Removed manual update button on package list
authorAlexander Ebert <ebert@woltlab.com>
Wed, 1 May 2013 13:49:19 +0000 (15:49 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 1 May 2013 13:49:19 +0000 (15:49 +0200)
wcfsetup/install/files/acp/templates/package.tpl

index 63b87d2332417655a0babac610389bada0986812..9833157d73b065e9c06fb8406ad30edd4b8ecb54 100644 (file)
                                                                {foreach from=$package->getRequiredPackages() item=requiredPackage}
                                                                        <tr class="jsPackageRow">
                                                                                <td class="columnIcon">
-                                                                                       {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')}
-                                                                                               <a href="{link controller='PackageStartInstall' id=$requiredPackage->packageID}action=update{/link}" title="{lang}wcf.acp.package.button.update{/lang}" class="jsTooltip"><span class="icon icon16 icon-repeat"></span></a>
-                                                                                       {/if}
                                                                                        {if $requiredPackage->canUninstall()}
                                                                                                <span class="icon icon16 icon-remove pointer jsTooltip jsUninstallButton" title="{lang}wcf.acp.package.button.uninstall{/lang}" data-objectID="{@$requiredPackage->packageID}" data-confirm-message="{lang package=$requiredPackage}wcf.acp.package.uninstallation.confirm{/lang}" data-is-required="{if $package->isRequired()}true{else}false{/if}"></span>
                                                                                        {else}
                                                                {foreach from=$package->getDependentPackages() item=dependentPackage}
                                                                        <tr class="jsPackageRow">
                                                                                <td class="columnIcon">
-                                                                                       {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')}
-                                                                                               <a href="{link controller='PackageStartInstall' id=$dependentPackage->packageID}action=update{/link}" title="{lang}wcf.acp.package.button.update{/lang}" class="jsTooltip"><span class="icon icon16 icon-repeat"></span></a>
-                                                                                       {/if}
                                                                                        {if $dependentPackage->canUninstall()}
                                                                                                <span class="icon icon16 icon-remove pointer jsTooltip jsUninstallButton" title="{lang}wcf.acp.package.button.uninstall{/lang}" data-objectID="{@$dependentPackage->packageID}" data-confirm-message="{lang package=$dependentPackage}wcf.acp.package.uninstallation.confirm{/lang}" data-is-required="{if $package->isRequired()}true{else}false{/if}"></span>
                                                                                        {else}
 <div class="contentNavigation">
        <nav>
                <ul>
-                       {if PACKAGE_ID != $package->packageID}
-                               {if $package->canUninstall()}
-                                       {* TODO: maybe show users that this package can't be uninstalled because a dependent package is the active application *}
-                                       <li><a href="{link controller='Package'}action=startUninstall&packageID={@$package->packageID}{/link}" onclick="return confirm('{lang}wcf.acp.package.button.uninstall.sure{/lang}')" class="button"><span class="icon icon16 icon-remove"></span> <span>{lang}wcf.acp.package.button.uninstall{/lang}</span></a></li>
-                               {/if}
-                       {/if}
-                       {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')}
-                               <li><a href="{link controller='PackageStartInstall' id=$package->packageID}action=update{/link}" class="button"><span class="icon icon16 icon-repeat"></span> <span>{lang}wcf.acp.package.button.update{/lang}</span></a></li>
+                       {if PACKAGE_ID != $package->packageID && $package->canUninstall()}
+                               <li><a href="{link controller='Package'}action=startUninstall&packageID={@$package->packageID}{/link}" onclick="return confirm('{lang}wcf.acp.package.button.uninstall.sure{/lang}')" class="button"><span class="icon icon16 icon-remove"></span> <span>{lang}wcf.acp.package.button.uninstall{/lang}</span></a></li>
                        {/if}
                        
                        {event name='contentNavigationButtonsBottom'}