Commits

Anonymous committed 732d42a

Make the timeline a bit more compact.

Comments (0)

Files changed (3)

htdocs/css/timeline.css

 
 h2 { background: #f7f7f7; border-bottom: 1px solid #d7d7d7; font-size: 105% }
 dl { line-height: 1.3em; margin-left: 1em }
-dt { background: 3px 4px no-repeat; padding: 0 0 }
+dt { background: 3px 4px no-repeat; padding: 0 }
 dt :link, dt :visited {
  background: 3px 3px no-repeat;
  border: none;
 dt .time { color: #999; font-size: 80%; }
 dd { 
  font-size: 80%;
- margin: 0 0 1em 9em;
+ margin: 0 0 .75em 5.5em;
  padding: 0;
  color: #776;
 }

templates/timeline.cs

 <?cs def:tlitem(url, type, msg, descr) ?>
  <dt class="<?cs var:type ?>">
   <a href="<?cs var:url ?>"><span class="time"><?cs
-    var:item.time ?> :</span> <?cs var:msg ?></a>
+    var:item.time ?></span> <?cs var:msg ?></a>
  </dt>
  <?cs if:descr ?><dd><?cs var:descr ?></dd><?cs /if ?>
 <?cs /def ?>
                 break
             t = time.localtime(int(row['time']))
             gmt = time.gmtime(int(row['time']))
-            item = {'time': time.strftime('%X', t),
+            item = {'time': time.strftime('%H:%M', t),
                     'date': time.strftime('%x', t),
                     'datetime': time.strftime('%a, %d %b %Y %H:%M:%S GMT', gmt),
                     'idata': int(row['idata']),