zulip/static/js
vaibhav 75bf501553 Add optional waiting period for users to create streams.
This adds support for only allowing normal users with account age
equal or greater than a "waiting period" threshold to create streams;
this is useful for open organizations that want new members to
understand the community before creating streams.

If create_stream_by_admins_only setting is set to True, only admin users
were able to create streams. Now normal users with account age greater
or equal than waiting period threshold can also create streams.

Account age is defined as number of days passed since the user had
created his account.

Fixes: #2308.

Tweaked by tabbott to clean up the actual can_create_streams logic and
the tests.
2016-12-15 16:54:30 -08:00
..
src eslint: change no-plusplus from warning to 2 and fix violations. 2016-12-01 14:27:17 -08:00
.eslintrc.json Change name of eslintrc file to .eslintrc.json 2016-11-29 08:58:39 -08:00
activity.js Do not open compose box if user sidebar search is empty. 2016-12-13 11:04:08 -08:00
admin.js Add optional waiting period for users to create streams. 2016-12-15 16:54:30 -08:00
alert_words_ui.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
alert_words.js lint: Fix several no-unused-vars eslint rule violations. 2016-12-03 18:43:47 -08:00
api.js Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
avatar.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
blueslip.js debug: Fix actual traceback being hidden in blueslip. 2016-08-09 11:59:49 -07:00
bot_data.js admin: Limit bots in settings page. 2016-12-14 19:29:02 -08:00
channel.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
click_handlers.js lint: Fix remaining no-unused-vars eslint rule violations. 2016-12-14 22:36:47 -08:00
colorspace.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
common.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
components.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
compose_fade.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
compose.js lint: Fix remaining no-unused-vars eslint rule violations. 2016-12-14 22:36:47 -08:00
composebox_typeahead.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
condense.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
copy_and_paste.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
custom_markdown.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
debug.js lint: Remove old jslint linter. 2016-12-02 18:49:42 -08:00
dict.js lint: Fix several no-unused-vars eslint rule violations. 2016-12-03 18:43:47 -08:00
echo.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
emoji.js eslint: change space-before-function-paren from warning to error. 2016-12-05 09:50:37 -08:00
favicon.js Switch from deprecated $.browser to userAgent test. 2016-08-25 14:12:58 -07:00
feature_flags.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
fenced_code.js eslint: change no-else-return to error and fix violations 2016-12-02 14:43:09 -08:00
filter.js eslint: change quote-props from off to error and fix violations. 2016-12-02 18:35:53 -08:00
floating_recipient_bar.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
gear_menu.js redesign: Convert subscriptions page to overlay. 2016-12-09 11:08:08 -08:00
hashchange.js Blur the active element on settings/streams modal exit. 2016-12-14 15:37:43 -08:00
hotkey.js redesign: Convert subscriptions page to overlay. 2016-12-09 11:08:08 -08:00
invite.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
loading.js Moved loading_indicator functions to loading.js. 2014-03-14 20:48:52 -04:00
localstorage.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
message_edit.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
message_flags.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
message_list_view.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
message_list.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
message_store.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
muting_ui.js lint: Fix remaining no-unused-vars eslint rule violations. 2016-12-14 22:36:47 -08:00
muting.js Update unread counts for streams when muting topics. 2016-03-27 13:49:52 -07:00
narrow.js lint: Fix remaining no-unused-vars eslint rule violations. 2016-12-14 22:36:47 -08:00
navigate.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
notifications.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
people.js eslint: change quote-props from off to error and fix violations. 2016-12-02 18:35:53 -08:00
pm_list.js eslint: change space-before-function-paren from warning to error. 2016-12-05 09:50:37 -08:00
pointer.js eslint: change no-else-return to error and fix violations 2016-12-02 14:43:09 -08:00
popovers.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
referral.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
reload.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
resize.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
rows.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
scroll_bar.js eslint: change quote-props from off to error and fix violations. 2016-12-02 18:35:53 -08:00
search_suggestion.js eslint: change no-plusplus from warning to 2 and fix violations. 2016-12-01 14:27:17 -08:00
search.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
server_events.js Add optional waiting period for users to create streams. 2016-12-15 16:54:30 -08:00
settings.js lint: Fix remaining no-unused-vars eslint rule violations. 2016-12-14 22:36:47 -08:00
setup.js Remove extra new lines at the ends of Zulip authoried files. 2016-09-26 21:05:24 -07:00
signup.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
socket.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
stream_color.js eslint: change space-before-function-paren from warning to error. 2016-12-05 09:50:37 -08:00
stream_data.js redesign: Convert subscriptions page to overlay. 2016-12-09 11:08:08 -08:00
stream_list.js lint: Fix remaining no-unused-vars eslint rule violations. 2016-12-14 22:36:47 -08:00
subs.js lint: Fix remaining no-unused-vars eslint rule violations. 2016-12-14 22:36:47 -08:00
tab_bar.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
templates.js eslint: change no-plusplus from warning to 2 and fix violations. 2016-12-01 14:27:17 -08:00
timerender.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00
topic_list.js Remove spurious blueslip error for topic lists. 2016-11-16 22:01:30 -08:00
tutorial.js js: Fix some minor whitespace issues. 2016-12-02 18:39:30 -08:00
typeahead_helper.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
ui.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
unread_ui.js eslint: change no-else-return to error and fix violations 2016-12-02 14:43:09 -08:00
unread.js lint: Fix many no-unused-vars eslint rule violations. 2016-12-14 21:34:51 -08:00
util.js Improve error handling in is_current_user(). 2016-12-14 19:27:43 -08:00
viewport.js eslint: change space-before-function-paren from warning to error. 2016-12-05 09:50:37 -08:00
zulip.js Migrate JS modules to CommonJS style. 2016-12-07 16:11:52 -08:00