2013-08-01 17:59:23 +02:00
|
|
|
var feature_flags = (function () {
|
|
|
|
|
|
|
|
var exports = {};
|
|
|
|
|
2013-09-19 16:51:11 +02:00
|
|
|
exports.mark_read_at_bottom = true;
|
|
|
|
exports.summarize_read_while_narrowed = true;
|
|
|
|
|
2013-08-09 18:02:03 +02:00
|
|
|
exports.twenty_four_hour_time = _.contains([],
|
|
|
|
page_params.email);
|
2013-08-10 04:42:53 +02:00
|
|
|
exports.dropbox_integration = page_params.staging || _.contains(['dropbox.com'], page_params.domain);
|
2013-08-15 18:31:53 +02:00
|
|
|
|
|
|
|
exports.mandatory_topics = _.contains([
|
|
|
|
'customer7.invalid'
|
|
|
|
],
|
|
|
|
page_params.domain
|
|
|
|
);
|
|
|
|
|
2013-08-23 22:25:37 +02:00
|
|
|
exports.collapsible = page_params.staging;
|
2013-08-23 01:04:34 +02:00
|
|
|
|
2013-09-04 20:30:33 +02:00
|
|
|
exports.propagate_topic_edits = page_params.staging ||
|
|
|
|
_.contains(['customer7.invalid'], page_params.domain);
|
|
|
|
|
2013-09-24 17:23:34 +02:00
|
|
|
var customer4_realms = [
|
|
|
|
'customer4.invalid',
|
|
|
|
'users.customer4.invalid'
|
|
|
|
];
|
|
|
|
var is_customer4 = _.contains(customer4_realms, page_params.domain);
|
|
|
|
|
|
|
|
exports.fade_users_when_composing = page_params.staging || is_customer4;
|
2013-09-03 15:16:00 +02:00
|
|
|
|
2013-09-20 20:18:43 +02:00
|
|
|
exports.alert_words =
|
|
|
|
_.contains(['reddit.com', 'mit.edu', 'zulip.com'], page_params.domain);
|
2013-09-03 15:16:00 +02:00
|
|
|
|
2013-09-23 23:57:50 +02:00
|
|
|
|
|
|
|
var zulip_mit_emails = [];
|
|
|
|
|
|
|
|
var is_zulip_mit_user = _.contains(zulip_mit_emails, page_params.email);
|
|
|
|
|
|
|
|
exports.muting = page_params.staging || is_zulip_mit_user;
|
2013-09-09 20:24:21 +02:00
|
|
|
|
2013-09-12 22:02:55 +02:00
|
|
|
exports.left_side_userlist = page_params.staging ||
|
|
|
|
_.contains(['customer7.invalid'], page_params.domain);
|
|
|
|
|
2013-08-01 17:59:23 +02:00
|
|
|
return exports;
|
|
|
|
|
|
|
|
}());
|