Don't show task list sections if Nag is not installed.
authorJan Schneider <jan@horde.org>
Mon, 22 Feb 2010 18:31:09 +0000 (19:31 +0100)
committerJan Schneider <jan@horde.org>
Mon, 22 Feb 2010 18:31:09 +0000 (19:31 +0100)
kronolith/templates/index/index.inc

index 2714e15..8dd3213 100644 (file)
@@ -92,6 +92,7 @@
   <div id="kronolithMyCalendars" class="kronolithCalendars" style="display:none">
   </div>
 
+  <?php if ($GLOBALS['registry']->hasInterface('tasks')): ?>
   <h3>
     <?php if (Horde_Auth::getAuth() && !$prefs->isLocked('default_share')): ?>
     <a href="#" id="kronolithAddtasklists" class="kronolithAdd">+</a>
 
   <div id="kronolithMyTasklists" class="kronolithCalendars" style="display:none">
   </div>
+  <?php endif; ?>
 
   <h3>
     <!-- to be added when searching for shared calendars is implemented <a href="#" id="kronolithAddinternalshared" class="kronolithAdd">+</a>-->
   <div id="kronolithSharedCalendars" class="kronolithCalendars" style="display:none">
   </div>
 
+  <?php if ($GLOBALS['registry']->hasInterface('tasks')): ?>
   <h3>
     <!-- to be added when searching for shared calendars is implemented <a href="#" id="kronolithAddtasklistsshared" class="kronolithAdd">+</a>-->
     <span><?php echo _("Shared Task Lists") ?></span>
 
   <div id="kronolithSharedTasklists" class="kronolithCalendars" style="display:none">
   </div>
+  <?php endif; ?>
 
   <div id="kronolithExternalCalendars"></div>