changeset 469:fccb15424ca3

Cosmetic improvements.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 06 Dec 2013 20:30:16 +0200
parents bc1755a9f89f
children a65a00599a68
files admajax.php
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/admajax.php	Fri Dec 06 20:13:31 2013 +0200
+++ b/admajax.php	Fri Dec 06 20:30:16 2013 +0200
@@ -252,7 +252,10 @@
       $str .= $indent."  ".
         stGetOptionListItem($item["show_id"],
         ($item["show_id"] == $currShowID),
-        sprintf("%3d. %s by %s", $item["show_id"], $item["name"], $item["author"]));
+        sprintf("%3d. %-25s by %-15s",
+          $item["show_id"],
+          substr($item["name"], 0, 25),
+          substr($item["author"], 0, 15)));
     }
   }
   
@@ -936,7 +939,7 @@
           {
             echo "      ".stGetOptionListItem($item["id"],
               ($item["id"] == $currCompoID),
-              sprintf("%-30s (%d entries)", $item["name"], $item["nentries"]));
+              sprintf("%-20s (%d entries)", substr($item["name"], 0, 20), $item["nentries"]));
           }
         }