{{ @campaign.title }}
-{{ @campaign.description }}
+-
+
-
+
- {{ @group.name }} +
diff --git a/app/Main.php b/app/Main.php
index b3f9840fe49cc011e3e40e7a1656ad2bfc3c9737..2aa7bfa150ebfc9a40e5e83c0ac795d407b2b033 100644
--- a/app/Main.php
+++ b/app/Main.php
@@ -14,7 +14,6 @@ class Main extends Controller {
function home($f3,$args) {
// Select a random contact
//TODO: use weight for random
- $rand_id = rand(0, count($f3->get('contacts'))-1);
$contacts = $f3->get('contacts');
$groups = Api::get_groups();
@@ -23,7 +22,6 @@ class Main extends Controller {
$group_types = Api::get_group_types();
$f3->set('group_types', $group_types);
- $f3->set('contact', $contacts[$rand_id]);
$f3->set('block_content', 'home.html');
}
@@ -108,7 +106,6 @@ class Main extends Controller {
function contactslist($f3, $args) {
$contacts = Api::get_contacts();
$f3->set('contacts', $contacts);
- $f3->set('random', 2);
$f3->set('block_content', 'contactslist.html');
}
diff --git a/templates/base.html b/templates/base.html
index dc81c09ca0dbecf9dab71c03d958bf393e7ff7bd..e965a7b239ffbbf9ec260689a39b8590d13ceccc 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -1,4 +1,3 @@
{{ @group_type.name }}
-
+
{{ _("If you want to call for free, you must provide us with your phone number (the PiPhone will call that number to initiate the communication).") }}
-