aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/statistics_opt/numentities.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/admin/statistics_opt/numentities.php')
-rw-r--r--views/default/admin/statistics_opt/numentities.php27
1 files changed, 19 insertions, 8 deletions
diff --git a/views/default/admin/statistics_opt/numentities.php b/views/default/admin/statistics_opt/numentities.php
index a424b78cf..20a2168fb 100644
--- a/views/default/admin/statistics_opt/numentities.php
+++ b/views/default/admin/statistics_opt/numentities.php
@@ -14,22 +14,33 @@
// Get entity statistics
$entity_stats = get_entity_statistics();
?>
-<div>
+<div class="admin_statistics">
<h2><?php echo elgg_echo('admin:statistics:label:numentities'); ?></h2>
<table>
<?php
foreach ($entity_stats as $k => $entry)
- {
+ {
+ arsort($entry);
foreach ($entry as $a => $b)
{
- if ($a == "__base__")
- $a=$k;
- else
- $a = "$k $a";
+ if ($a == "__base__") {
+ $a = elgg_echo("item:{$k}");
+ if (empty($a))
+ $a = $k;
+ }
+ else {
+ if (empty($a))
+ $a = elgg_echo("item:{$k}");
+ else
+ $a = elgg_echo("item:{$k}:{$a}");
+ if (empty($a)) {
+ $a = "$k $a";
+ }
+ }
echo <<< END
<tr>
- <td><b>$a :</b></td>
- <td>$b</td>
+ <td style="width: 250px">{$a}:</td>
+ <td>{$b}</td>
</tr>
END;
}