Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin Panel For Systemwide Messaging #214

Merged
merged 3 commits into from
Jun 15, 2020
Merged

Admin Panel For Systemwide Messaging #214

merged 3 commits into from
Jun 15, 2020

Conversation

dhakim87
Copy link
Collaborator

Adds a new administrator panel for sending messages user wide. Can be used to notify users of maintenance, solving part of #192

@@ -834,6 +859,8 @@ def get_source(account_id, source_id):
is_human = source_output['source_type'] == Source.SOURCE_TYPE_HUMAN
return render_template('source.jinja2',
admin_mode=session.get(ADMIN_MODE_KEY, False),
system_msg_text=SYSTEM_MSG,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All this makes me wonder if render_template should be a functools.partial, or if flask has a mechanism to intercept render_template calls? (Not blocking here, but if you agree we should make an issue)

@wasade wasade merged commit 6253f95 into master Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants