Permalink
Browse files

Add users count

  • Loading branch information...
1 parent cdc5742 commit 7e3b0e10e16180dd8cb1329adbda04603901f9a1 @simonewebdesign committed Mar 19, 2013
Showing with 5 additions and 5 deletions.
  1. +1 −1 Lista.php
  2. +1 −1 languages/en.php
  3. +1 −1 languages/it.php
  4. +2 −2 lists.php
View
2 Lista.php
@@ -1 +1 @@
-<?php
+<?php
View
2 languages/en.php
@@ -40,7 +40,7 @@
# miscellaneous
define('BACK', 'Go back');
define('BODY', 'Body');
-define('USERS_COUNT', '#');
+define('USERS_COUNT', '# Subscriptions');
define('DESCRIPTION', 'Description');
define('EMAIL', 'Email');
define('EMAIL_ADDRESSES', 'Email addresses');
View
2 languages/it.php
@@ -40,7 +40,7 @@
# miscellaneous
define('BACK', 'Torna indietro');
define('BODY', 'Corpo');
-define('COUNT', 'Numero');
+define('USERS_COUNT', 'Numero iscritti');
define('DESCRIPTION', 'Descrizione');
define('EMAIL', 'Email');
define('EMAIL_ADDRESSES', 'Indirizzi email');
View
4 lists.php
@@ -5,7 +5,7 @@
#########################
-$lists = Lista::all();
+$lists = Lista::all_with_users_count();
?>
@@ -33,7 +33,7 @@
<tr>
<td><?=$l->id?></td>
<td><?=$l->name?></td>
- <td><i>non disponibile</i></td>
+ <td><?=$l->users_count?></td>
<td><?=date(PHP_DATE, strtotime($l->created_at))?></td>
<?php if ($l->updated_at == '0000-00-00 00:00:00') { ?>

0 comments on commit 7e3b0e1

Please sign in to comment.