From 03c60e2b55791945e04573d9e9eb2bbdc869ded3 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 1 Jan 2009 00:28:00 +0000 Subject: Add deepest album link --- core/controllers/welcome.php | 2 ++ core/views/welcome.html.php | 6 ++++++ 2 files changed, 8 insertions(+) (limited to 'core') diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index b83ea40d..b3a12952 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -37,6 +37,8 @@ class Welcome_Controller extends Template_Controller { $this->template->photo_count = ORM::factory("item")->where("type", "photo")->count_all(); $this->template->deepest_photo = ORM::factory("item") ->where("type", "photo")->orderby("level", "desc")->find(); + $this->template->deepest_album = ORM::factory("item") + ->where("type", "album")->orderby("level", "desc")->find(); $this->template->album_tree = $this->_load_album_tree(); $this->template->add_photo_html = $this->_get_add_photo_html(); } catch (Exception $e) { diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php index e354db76..9300de02 100644 --- a/core/views/welcome.html.php +++ b/core/views/welcome.html.php @@ -419,6 +419,12 @@ (level ?> levels deep) + +
  • + id}", "Deepest album") ?> + (level ?> levels deep) +
  • +
  • id}", "Most tagged item") ?> -- cgit v1.2.3