Tweak attendees table.
authorJan Schneider <jan@horde.org>
Thu, 5 Nov 2009 17:42:51 +0000 (18:42 +0100)
committerJan Schneider <jan@horde.org>
Thu, 5 Nov 2009 17:42:51 +0000 (18:42 +0100)
kronolith/templates/index/edit.inc
kronolith/themes/screen.css

index 9c4ffe8..4a9ac2b 100644 (file)
       </tr>
     </thead>
     <tbody>
-      <?php for ($p = 0; $p < count($part); $p++): ?>
+      <?php foreach ($part as $p): ?>
       <tr>
-        <td><?php echo strlen($part[$p]) > 15 ? substr($part[$p], 0, 13) . '...' : $part[$p] ?></td>
+        <td title="<?php echo $p ?>"><?php echo $p ?></td>
         <?php for ($i = 0; $i < 24; $i++): ?>
         <td></td>
         <?php endfor; ?>
       </tr>
-      <?php endfor; ?>
+      <?php endforeach; ?>
     </tbody>
   </table>
 </div>
index 3b74110..b1cc8e9 100644 (file)
@@ -682,21 +682,29 @@ div#kronolithEventTopTags span:hover {
 .kronolithTabsOption {
     line-height: 250%;
 }
+#kronolithEventTabAttendees table {
+    border-collapse: collapse;
+    table-layout: fixed;
+}
 #kronolithEventTabAttendees td, #kronolithEventTabAttendees th {
+    border: 1px solid #c0c0c0;
     padding: 1px;
-    width: 24px;
+    width: 22px;
     font-size: 85%;
     line-height: 140%;
 }
+#kronolithEventTabAttendees td:first-child, #kronolithEventTabAttendees th:first-child {
+    width: 100px;
+    overflow: hidden;
+}
 #kronolithEventTabAttendees th {
-    background-color: #fff;
     text-align: center;
 }
 #kronolithEventTabAttendees th:first-child {
     text-align: left;
 }
 #kronolithEventTabAttendees th.night {
-    background-color: #c0c0c0;
+    background-color: #ccc;
 }
 
 /* Mini calendar */