Order history formatting.
authorIain Patterson <me@iain.cx>
Mon, 13 May 2013 08:43:08 +0000 (04:43 -0400)
committerIain Patterson <me@iain.cx>
Mon, 13 May 2013 12:48:06 +0000 (08:48 -0400)
Use a paragraph with the history class to format the order history.

lib/order.php

index e9aaeda..95d96bb 100644 (file)
     if (! count($order_states)) return;
 
     echo "<h3>Order history</h3>\n";
+    echo "<p class=\"history\">\n";
     foreach ($order_states as $order_state) {
       $date = $order_state->getUpdated();
 
         }
       }
       #$state = $states[$order_state->getState()];
-      echo "<p><strong>$username</strong> changed order to state <strong>$state</strong>";
+      echo "<strong>$username</strong> changed order to state <strong>$state</strong>";
       if ($driver) echo " for driver " . $driver->getDisplayname();
-      echo " on $date.</p>\n";
+      echo " on $date.<br>\n";
     }
+    echo "</p>\n";
   }
 
   function show_order(&$id = null) {