Start playing with some CSS for tags in the panel.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 30 Jan 2009 16:43:35 +0000 (11:43 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 31 Jan 2009 14:54:39 +0000 (09:54 -0500)
kronolith/templates/panel.inc
kronolith/themes/screen.css

index b717e3c..537063f 100644 (file)
@@ -44,8 +44,10 @@ $tagger = new Kronolith_Tagger();
  <ul id="mycalendars">
 <?php foreach ($my_calendars as $id => $cal): ?>
   <li><label><input type="checkbox" class="checkbox" name="display_cal[]" value="<?php echo htmlspecialchars($id) ?>"<?php echo (in_array($id, $display_calendars) ? ' checked="checked"' : '') . ' /> ' . htmlspecialchars($cal->get('name')) ?></label> <?php echo $info_img ?>
-   <ul class="panel-tags" id="tags-<?php echo $id?>" style="margin-left: 10px;">
-    <?php $tags = $tagger->getTags($id, 'calendar'); ?>
+   <div class="panel-tags">
+   <?php $tags = $tagger->getTags($id, 'calendar'); ?>
+   <h5><?php echo (count($tags) ? _("Tags") : '');?></h5>
+   <ul id="tags-<?php echo $id?>" style="margin-left: 10px;">
     <?php foreach ($tags as $tag_id => $tag): ?>
     <li><?php echo $tag . ($cal->hasPermission(Auth::getAuth(), PERMS_EDIT) ? '<a href="#" id="remove' . md5($id . $tag_id) . '">' . Horde::img('delete-small.png', _("Remove Tag"), '', $registry->getImageDir('horde')) . '</a>' : '') . '</li>'?>
     <?php
@@ -57,6 +59,8 @@ $tagger = new Kronolith_Tagger();
     ?>
     <?php endforeach;?>
   </ul>
+  <div class="clear">&nbsp;</div>
+  </div>
   </li>
 <?php endforeach; ?>
  </ul>
index fc69c92..bf37659 100644 (file)
@@ -1106,3 +1106,23 @@ div.kronolithView .kronolithEvents .kronolithEvent .kronolithEventInfo {
 /* till 23 */
 
 /* end tables */
+
+/* tags */
+.panel-tags {
+    margin-left: 10px;
+}
+
+.panel-tags ul {
+    margin: 1px;
+    padding: 1px;
+    list-style-type: none;
+}
+
+.panel-tags li {
+    float: left;
+    padding: 2px;
+}
+
+.panel-tags li:hover {
+    text-decoration: underline;
+}
\ No newline at end of file