Replace calendar panel with a "Return to my calendars" link when displaying display_cals.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 2 Sep 2009 19:24:47 +0000 (15:24 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 2 Sep 2009 19:26:17 +0000 (15:26 -0400)
kronolith/templates/panel.inc
kronolith/themes/screen.css

index bd746a9..118076a 100644 (file)
@@ -1,3 +1,8 @@
+<?php if (!empty($_SESSION['kronolith']['display_cal'])): ?>
+<div id="pageControls">
+ <a id="sbarClose" href="<?php echo Horde_Util::addParameter(Horde::selfUrl(true), 'display_cal', '') ?>"><?php echo _("Return to my calendars")?></a>
+</div>
+<?php else: ?>
 <script type="text/javascript">
 function toggleTags(domid)
 {
@@ -139,3 +144,4 @@ $ta->attach();
 
 </div>
 </div>
+<?php endif; ?>
\ No newline at end of file
index 412dc8b..5628dde 100644 (file)
@@ -220,7 +220,7 @@ body.rightPanel #page {
 body #pageControlsInner {
     display: none;
 }
-body #sbarShow, body #sbarHide {
+body #sbarShow, body #sbarHide, body #sbarClose {
     padding-left: 18px;
     white-space: nowrap;
     font-weight: bold;