Improve edit title
authorJoey Schulze <joey@infodrom.org>
Mon, 13 May 2013 10:49:58 +0000 (10:49 +0000)
committerJoey Schulze <joey@infodrom.org>
Mon, 13 May 2013 10:49:58 +0000 (10:49 +0000)
src/InfoCon/stempel/edit.wml

index db64319..894544f 100644 (file)
@@ -58,7 +58,11 @@ div.radio input.radio {
 </style>
 
 <?
-printf('<h3 class="bar" align="center">- %s: %s</h3>', $row['customer'], $row['task']);
+$name = load_customers();
+$cname = $name[$row['customer']];
+if (!strlen($cname)) $cname = ucfirst($row['customer']);
+
+printf('<h3 class="bar" align="center">%s: %s</h3>', $cname, substring($row['task'],0,80-strlen($cname)));
 ?>
 
 <form method=post action="update.php">