diff options
author | Dave Whiteland <dave@mysociety.org> | 2012-07-11 14:11:20 +0100 |
---|---|---|
committer | Dave Whiteland <dave@mysociety.org> | 2012-07-11 14:11:20 +0100 |
commit | 15fb383ca0877f9a5e648e20e85745625cc0ea07 (patch) | |
tree | 8ada40933a338d49962c9f506f748f662a9b48f9 | |
parent | a1501077eae5b1144d782b7eb9af67e4bdf81641 (diff) |
add MESSAGE_MANAGER_URL config
-rw-r--r-- | conf/general.yml-example | 4 | ||||
-rw-r--r-- | templates/web/fixmybarangay/around/tabbed_lists.html | 4 | ||||
-rw-r--r-- | templates/web/fixmybarangay/header.html | 2 |
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); } }); |