Eywa update
authorJan Prachař <jan.prachar@intya.cz>
Thu, 7 Jul 2011 15:32:15 +0000 (17:32 +0200)
committerJan Prachař <jan.prachar@intya.cz>
Thu, 7 Jul 2011 15:32:15 +0000 (17:32 +0200)
app/config.ini
app/presenters/Overview.php
app/templates/Overview.default.phtml
libs/eywa

index 1198eb2..c452544 100755 (executable)
@@ -18,7 +18,7 @@ variable.allowRobots = TRUE
 ; services\r
 service.Nette-Application-Application = Eywa\Application\r
 \r
-service.Nette-Security-IAuthenticator = Eywa\Security\Authenticator\r
+service.Nette-Security-IAuthenticator = Eywa\Security\LdapAuthenticator\r
 service.Nette-Security-IAuthorizator  = Nette\Security\Permission\r
 \r
 service.Nette-Application-IPresenterLoader.factory = Eywa\PresenterLoader\r
index 10ebb25..63bbebe 100644 (file)
@@ -13,21 +13,7 @@ class Overview extends Base
 
     public function renderDefault($path = '')
     {
-        $this->template->list = $this->repository->getPages($this->getParam('path'), $this->orderBy(), NULL, $this->filter());
-    }
-
-
-
-    protected function orderBy()
-    {
-        return array('ctime', 'desc');
-    }
-
-
-
-    protected function filter()
-    {
-        return NULL;
+        $this->template->list = $this['overview']->getDocuments();
     }
 
 }
\ No newline at end of file
index f788689..d6bd901 100644 (file)
@@ -8,4 +8,6 @@
         <li><a href="{dlink $item->path}" title="{$item->title}">{$item->name}</a></li>
     {/foreach}
     </ul>
+
+    {control overview}
 </div>
\ No newline at end of file
index 53eb8b4..2fe6703 160000 (submodule)
--- a/libs/eywa
+++ b/libs/eywa
@@ -1 +1 @@
-Subproject commit 53eb8b491f597d25bf8009693ab41a13b1f90781
+Subproject commit 2fe67032d43dae43431819d0cc3bc09d165f3d18