aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/general.yml-example4
-rw-r--r--templates/web/fixmybarangay/around/tabbed_lists.html4
-rw-r--r--templates/web/fixmybarangay/header.html2
3 files changed, 7 insertions, 3 deletions
diff --git a/conf/general.yml-example b/conf/general.yml-example
index 93b54a3e7..eceede6b0 100644
--- a/conf/general.yml-example
+++ b/conf/general.yml-example
@@ -64,3 +64,7 @@ AREA_LINKS_FROM_PROBLEMS: '0'
# used to override the STAGING SERVER safety mechanism in send-reports
TESTING_COUNCILS:
+
+# if you're using Message Manager, include the URL here (see https://github.com/mysociety/message-manager/)
+MESSAGE_MANAGER_URL: ''
+
diff --git a/templates/web/fixmybarangay/around/tabbed_lists.html b/templates/web/fixmybarangay/around/tabbed_lists.html
index 8ebc2593d..fa4bd6963 100644
--- a/templates/web/fixmybarangay/around/tabbed_lists.html
+++ b/templates/web/fixmybarangay/around/tabbed_lists.html
@@ -43,10 +43,10 @@ IF allow_creation %]
$(document).ready(function() {
- var mm_url = "http://dave.message-manager.dev.mysociety.org/";
+ var mm_url = "[% c.config.MESSAGE_MANAGER_URL %]"; // from config
var mm_populate_list = function(data) {
- $('#mm-status-message-container').text("Got messages as " + data['username']);
+ $('#mm-status-message-container').text("Accessed message server as " + data['username']);
$('input[name=mm_text]').prop('checked', false); // uncheck all
}
diff --git a/templates/web/fixmybarangay/header.html b/templates/web/fixmybarangay/header.html
index 30967b57f..55cf47789 100644
--- a/templates/web/fixmybarangay/header.html
+++ b/templates/web/fixmybarangay/header.html
@@ -32,7 +32,7 @@
var mm_msg_id ="[% problem.service %]".match(/\d+$/);
var fms_id = "[% problem.id %]";
if (mm_msg_id && fms_id) {
- message_manager.config({url_root: "http://dave.message-manager.dev.mysociety.org/"});
+ message_manager.config({url_root: "[% c.config.MESSAGE_MANAGER_URL %]"});
message_manager.assign_fms_id(mm_msg_id, fms_id);
}
});