From: Alexander Ebert Date: Tue, 1 Jan 2013 21:05:50 +0000 (+0100) Subject: Renamed PackageListDetailed -> PackageList X-Git-Tag: 2.0.0_Beta_1~618 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=61d1f05a01c0bb5c54a366392c5213fcd5ad175e;p=GitHub%2FWoltLab%2FWCF.git Renamed PackageListDetailed -> PackageList --- diff --git a/wcfsetup/install/files/acp/templates/packageList.tpl b/wcfsetup/install/files/acp/templates/packageList.tpl new file mode 100644 index 0000000000..75dd190722 --- /dev/null +++ b/wcfsetup/install/files/acp/templates/packageList.tpl @@ -0,0 +1,122 @@ +{include file='header' pageTitle='wcf.acp.package.list'} + + + +
+
+

{lang}wcf.acp.package.list{/lang}

+
+
+ +
+ {pages print=true assign=pagesLinks controller='PackageList' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"} + + {hascontent} + + {/hascontent} +
+ +{if $objects|count > 0} +
+
+

{lang}wcf.acp.package.list{/lang} {#$items}

+
+ + + + + + + + + + + {event name='headColumns'} + + + + + {foreach from=$objects item=$package} + + + + + + + + + + {event name='columns'} + + {/foreach} + +
{lang}wcf.global.objectID{/lang}{if $sortField == 'packageID'} {/if}{lang}wcf.acp.package.name{/lang}{if $sortField == 'packageName'} {/if}{lang}wcf.acp.package.author{/lang}{if $sortField == 'author'} {/if}{lang}wcf.acp.package.version{/lang}{lang}wcf.acp.package.updateDate{/lang}{if $sortField == 'updateDate'} {/if}
+ {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')} + + {else} + + {/if} + {if $package->canUninstall()} + + {else} + + {/if} + + {event name='buttons'} +

{@$package->packageID}

+ {if $package->isApplication} + + {else} + + {/if} + + {$package} +

{if $package->authorURL}{$package->author}{else}{$package->author}{/if}

{$package->packageVersion}

{@$package->updateDate|time}

+ +
+{/if} + +
+ {@$pagesLinks} + + {hascontent} + + + {/hascontent} +
+ +{include file='footer'} diff --git a/wcfsetup/install/files/acp/templates/packageListDetailed.tpl b/wcfsetup/install/files/acp/templates/packageListDetailed.tpl deleted file mode 100644 index 91f7abf7d4..0000000000 --- a/wcfsetup/install/files/acp/templates/packageListDetailed.tpl +++ /dev/null @@ -1,122 +0,0 @@ -{include file='header' pageTitle='wcf.acp.package.list'} - - - -
-
-

{lang}wcf.acp.package.list{/lang}

-
-
- -
- {pages print=true assign=pagesLinks controller='PackageListDetailed' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"} - - {hascontent} - - {/hascontent} -
- -{if $objects|count > 0} -
-
-

{lang}wcf.acp.package.list{/lang} {#$items}

-
- - - - - - - - - - - {event name='headColumns'} - - - - - {foreach from=$objects item=$package} - - - - - - - - - - {event name='columns'} - - {/foreach} - -
{lang}wcf.global.objectID{/lang}{if $sortField == 'packageID'} {/if}{lang}wcf.acp.package.name{/lang}{if $sortField == 'packageName'} {/if}{lang}wcf.acp.package.author{/lang}{if $sortField == 'author'} {/if}{lang}wcf.acp.package.version{/lang}{lang}wcf.acp.package.updateDate{/lang}{if $sortField == 'updateDate'} {/if}
- {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')} - - {else} - - {/if} - {if $package->canUninstall()} - - {else} - - {/if} - - {event name='buttons'} -

{@$package->packageID}

- {if $package->isApplication} - - {else} - - {/if} - - {$package} -

{if $package->authorURL}{$package->author}{else}{$package->author}{/if}

{$package->packageVersion}

{@$package->updateDate|time}

- -
-{/if} - -
- {@$pagesLinks} - - {hascontent} - - - {/hascontent} -
- -{include file='footer'} diff --git a/wcfsetup/install/files/lib/acp/page/PackageListDetailedPage.class.php b/wcfsetup/install/files/lib/acp/page/PackageListDetailedPage.class.php deleted file mode 100644 index 8b27d61c66..0000000000 --- a/wcfsetup/install/files/lib/acp/page/PackageListDetailedPage.class.php +++ /dev/null @@ -1,59 +0,0 @@ - - * @package com.woltlab.wcf - * @subpackage acp.page - * @category Community Framework - */ -class PackageListDetailedPage extends SortablePage { - /** - * @see wcf\page\AbstractPage::$activeMenuItem - */ - public $activeMenuItem = 'wcf.acp.menu.link.package.list'; - - /** - * @see wcf\page\AbstractPage::$neededPermissions - */ - public $neededPermissions = array('admin.system.package.canUpdatePackage', 'admin.system.package.canUninstallPackage'); - - /** - * @see wcf\page\MultipleLinkPage::$itemsPerPage - */ - public $itemsPerPage = 50; - - /** - * @see wcf\page\SortablePage::$defaultSortField - */ - public $defaultSortField = 'packageType'; - - /** - * @see wcf\page\SortablePage::$defaultSortOrder - */ - public $defaultSortOrder = 'DESC'; - - /** - * @see wcf\page\SortablePage::$validSortFields - */ - public $validSortFields = array('packageID', 'package', 'packageDir', 'packageName', 'packageDescription', 'packageDate', 'packageURL', 'isApplication', 'author', 'authorURL', 'installDate', 'updateDate'); - - /** - * @see wcf\page\MultipleLinkPage::$objectListClassName - */ - public $objectListClassName = 'wcf\data\package\PackageList'; - - /** - * @see wcf\page\MultipleLinkPage::readObjects() - */ - protected function readObjects() { - $this->sqlOrderBy = 'package.'.($this->sortField == 'packageType' ? 'isApplication '.$this->sortOrder : $this->sortField.' '.$this->sortOrder).($this->sortField != 'packageName' ? ', package.packageName ASC' : ''); - - parent::readObjects(); - } -} diff --git a/wcfsetup/install/files/lib/acp/page/PackageListPage.class.php b/wcfsetup/install/files/lib/acp/page/PackageListPage.class.php new file mode 100644 index 0000000000..a381e1f36f --- /dev/null +++ b/wcfsetup/install/files/lib/acp/page/PackageListPage.class.php @@ -0,0 +1,59 @@ + + * @package com.woltlab.wcf + * @subpackage acp.page + * @category Community Framework + */ +class PackageListPage extends SortablePage { + /** + * @see wcf\page\AbstractPage::$activeMenuItem + */ + public $activeMenuItem = 'wcf.acp.menu.link.package.list'; + + /** + * @see wcf\page\AbstractPage::$neededPermissions + */ + public $neededPermissions = array('admin.system.package.canUpdatePackage', 'admin.system.package.canUninstallPackage'); + + /** + * @see wcf\page\MultipleLinkPage::$itemsPerPage + */ + public $itemsPerPage = 50; + + /** + * @see wcf\page\SortablePage::$defaultSortField + */ + public $defaultSortField = 'packageType'; + + /** + * @see wcf\page\SortablePage::$defaultSortOrder + */ + public $defaultSortOrder = 'DESC'; + + /** + * @see wcf\page\SortablePage::$validSortFields + */ + public $validSortFields = array('packageID', 'package', 'packageDir', 'packageName', 'packageDescription', 'packageDate', 'packageURL', 'isApplication', 'author', 'authorURL', 'installDate', 'updateDate'); + + /** + * @see wcf\page\MultipleLinkPage::$objectListClassName + */ + public $objectListClassName = 'wcf\data\package\PackageList'; + + /** + * @see wcf\page\MultipleLinkPage::readObjects() + */ + protected function readObjects() { + $this->sqlOrderBy = 'package.'.($this->sortField == 'packageType' ? 'isApplication '.$this->sortOrder : $this->sortField.' '.$this->sortOrder).($this->sortField != 'packageName' ? ', package.packageName ASC' : ''); + + parent::readObjects(); + } +}