cutting off admin pages at 100 personas
authorToby Elliott <telliott@mozilla.com>
Tue, 21 Jul 2009 16:38:02 -0700
changeset 1080 706c4f7b7f97557197d32f8549db5fa15d55e0bd
parent 1079 54990b3682a6169bb78b22142543e7b306d5751d
child 1081 b01a9ae9e041f14b27f40b28ed308dc6fee7d900
push id696
push usertelliott@mozilla.com
push dateTue, 21 Jul 2009 23:38:42 +0000
cutting off admin pages at 100 personas
server/admin/pending.php
--- a/server/admin/pending.php
+++ b/server/admin/pending.php
@@ -294,16 +294,21 @@
 			
 		if (!count($results))
 		{
 			print "There are no more pending personas";
 		}
 		else
 		{
             print count($results) . " pending personas";
+            if (count($results) > 100)
+            {
+            	print " (showing first 100)";
+            	$results = array_slice($results, 0, 100);
+            }
             print "<ul>\n";
 			foreach ($results as $persona)
 			{
 				$path = PERSONAS_URL_PREFIX . '/' . url_prefix($persona['id']);
 				$preview_url =  $path . "/preview.jpg";
 				$persona_json = htmlentities(json_encode(extract_record_data($persona, 'http://' . $_SERVER['SERVER_NAME'] . '/pending/')));
 ?>
                         <li class="gallery-item">