From c50d3146ca4f15162b782e496e557db487218d8c Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 14 Apr 2009 16:55:12 -0400 Subject: [PATCH] make the SHOW-only view much more legible by just reporting events as "busy". timing information is already present for these events --- kronolith/lib/Event.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index dab48c6f2..6af1cdfd3 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -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"); } } -- 2.11.0