make the SHOW-only view much more legible by just reporting events as "busy". timing...
authorChuck Hagenbuch <chuck@horde.org>
Tue, 14 Apr 2009 20:55:12 +0000 (16:55 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Tue, 14 Apr 2009 20:55:29 +0000 (16:55 -0400)
kronolith/lib/Event.php

index dab48c6..6af1cdf 100644 (file)
@@ -1315,11 +1315,11 @@ abstract class Kronolith_Event
         // We explicitly allow admin access here for the alarms notifications.
         if (!Auth::isAdmin() && $this->isPrivate() &&
             $this->getCreatorId() != $user) {
-            return sprintf(_("Private Event from %s to %s"), $start, $end);
+            return _("busy");
         } elseif (Auth::isAdmin() || $this->hasPermission(PERMS_READ, $user)) {
             return strlen($this->title) ? $this->title : _("[Unnamed event]");
         } else {
-            return sprintf(_("Event from %s to %s"), $start, $end);
+            return _("busy");
         }
     }