Vishnu Ks
dfaa939af2
emails: Store the compiled emails in separate directory.
2017-09-27 16:48:18 -07:00
Vishnu Ks
caaa90f22d
emails: Extract CSS from email_base_default.
2017-09-27 16:48:18 -07:00
Vaida Plankyte
207e06d558
frontend: Add header & body illustrations to emails.
2017-09-27 16:32:43 -07:00
Vaida Plankyte
6222a487ec
frontend: Add buttons to emails.
2017-09-27 16:16:43 -07:00
Vaida Plankyte
0993617214
frontend: Add new style to emails.
2017-09-27 16:16:43 -07:00
Vaida Plankyte
cb7353a3b5
frontend: Remove inline color assignments in emails.
2017-09-27 16:16:43 -07:00
Harshit Bansal
4e8e7348da
notifications: Fix the ugly inactive scrollbar in missed message emails.
...
Not sure why we have `overflow-y: scroll` in `messages` container in
missed messages email template when it is not a fixed width container
but anyway changing it to `overflow-y: auto` seems to be a safe change
as it will remove the ugly looking inactive scrollbar that was being
displayed there besides the `messages` container without changing the
functionality(if any).
2017-09-20 10:30:35 -07:00
Rishi Gupta
c1997e759c
password_reset: Change email to be appropriate for obtaining first password.
...
The situation if, for instance, the user signed up via google auth, and now
needs a password to get their API key.
2017-08-28 20:39:53 -07:00
Rishi Gupta
d296f29fa7
emails: Link to organization getting started guide in followup_day1.
2017-08-22 14:26:17 -07:00
Rishi Gupta
4a74399514
emails: Update followup_day2 with better topic advice.
...
These topics also better match the new followup_day2 email illustrations.
2017-08-22 14:26:17 -07:00
Tim Abbott
3425d83f52
twitter: Update links to point to our new Twitter username.
2017-08-01 17:13:33 -07:00
James Rowan
21b5536353
emails: Update subject lines of emails.
2017-07-14 15:20:04 -07:00
James Rowan
59b5a2f862
emails: Rewrite the day 1 followup email.
2017-07-13 20:51:54 -07:00
Rishi Gupta
f0ed556730
emails: Remove comments from tops of email templates.
...
The comments are not very helpful, in some cases incorrect, and make
skimming the template harder.
2017-07-13 19:17:53 -07:00
Rishi Gupta
d8eaae278d
emails: Update text of emails.
...
Partial update; likely more to be done.
2017-07-13 19:17:53 -07:00
James Rowan
71bc40d829
emails: Update subject for invitation emails.
2017-07-13 18:47:21 -07:00
James Rowan
88b8d98d34
emails: Update subject for missed message emails.
2017-07-13 18:47:17 -07:00
James Rowan
9bd1b0ba58
emails: Update subject for digest emails.
2017-07-13 18:47:02 -07:00
James Rowan
dc9a41c543
emails: Add preheader content to missed message emails.
2017-07-06 15:46:03 -07:00
Rishi Gupta
c827c7840d
lint: Re-indent digest.html and missed_message.html.
2017-07-06 15:46:03 -07:00
James Rowan
0d76da27b4
emails: Add base template for missed message and digest emails.
...
Also removes the files from lint, so that the new indentation doesn't
obscure the change. The files are reindented in the next commit.
2017-07-06 15:46:03 -07:00
Rishi Gupta
e04bf3273c
emails: Rename email_base.html to email_base_default.html.
...
About to add another template for digest and missed message emails. Another
natural name would be email_base_transactional, but the followup_day{1,2}
emails aren't really transactional.
2017-07-06 15:46:03 -07:00
Vaida Plankyte
0d8720fe0c
missed_message.txt: Use the singular 'they' pronoun.
2017-07-05 09:27:43 -07:00
Vaida Plankyte
b68ba0a13e
missed_message.html: Use the singular 'they' pronoun.
2017-07-05 11:34:45 +02:00
James Rowan
1ea9a23f95
emails: Fix two grammar nits.
2017-07-04 13:57:54 -07:00
James Rowan
19ffb84ac2
Make notification email for new login give browser and os.
...
notify_new_login.subject: include browser and os in subject line.
test_new_users: test for subject line to include browser/os.
2017-06-21 14:36:41 -04:00
Aditya Bansal
9cc3e8cf62
followup_day2.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
39a88019f8
followup_day1.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
9a0edad604
find_team.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
d4e827c618
email_base.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
9fc16888ca
digest.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
fa28dcd008
invitation_reminder.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
07e7482228
confirm_registration.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
1b82e90331
invitation.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
e12bb65c0b
confirm_new_email.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Ramesh
a77aa79da9
emails: Add html versions of emails that do not have them.
...
Fixes #4691 .
2017-06-12 23:02:28 -07:00
Rishi Gupta
9a02739008
emails: Remove invitation_mit.
2017-06-12 23:02:28 -07:00
Rishi Gupta
3332ebaf22
emails: Remove confirmation_registration_mit.
...
Not enough new Zephyr signups to justify the carrying cost :(.
2017-06-12 23:02:28 -07:00
Rishi Gupta
1d702d13a4
emails: Replace context variable zulip_support with support_email.
2017-06-10 01:35:03 -07:00
Rishi Gupta
c3aa799192
emails: Remove verbose_support_offers conditional where unneccesary.
...
For almost all of these, the verbose support offer clause is almost the same
as the non-verbose version. The distinction carries extra carrying cost when
coming up with new copy, testing new email designs, etc.
2017-06-10 01:04:00 -07:00
Vaida Plankyte
114b080d01
emails: Add base template for html emails.
2017-06-09 23:34:24 -07:00
Rishi Gupta
9cba5573e6
emails: Remove Zulip logo and tagline from the top of emails.
...
We're about to add a new base html template that will provide formatting and
other embellishments, so this touch is no longer needed.
2017-06-09 23:34:24 -07:00
Rishi Gupta
7aa735294f
emails: Remove unneeded safe tags from non-HTML email templates.
...
Reverts 7527ac9
, and removes an additional |safe tag in
missed_messages.txt. These files are now rendered by a template engine
with autoescape=False.
2017-06-06 23:22:22 -07:00
Rishi Gupta
7527ac9a8c
emails: Mark variables in non-HTML emails as HTML-safe.
...
Make sure 's, &s, and other characters are not HTML-escaped in subject
lines and plain-text emails.
Hack so that this isn't blocking the release of Zulip 1.6. A more robust way
to do this would be to have two different template Engines, one that renders
HTML, and one that doesn't.
Fixes #5088 .
2017-06-03 16:04:06 -07:00
Umair Khan
ad5780c03e
lint: Mark alt argument for translation.
2017-05-26 15:28:46 -07:00
James Rowan
0facaa0797
Changes sender and subject lines for missed message emails.
...
Now, in the event of messages between two other members of a huddle,
the missed message emails are threaded in "Group PMs with name1 and
name2" and not in separate threads by sender.
Also, now the order of recipients in get_display_recipient consistent
with the order of names that appears in the list of personal messages
on the left sidebar.
Fixes most of #4553 .
2017-05-12 13:29:43 -07:00
Rishi Gupta
0ce04556bf
CSS: Change color of PMs from yellow to blue-grey.
2017-05-11 16:18:39 -07:00
Rishi Gupta
8321bd3f92
notifications: Refactor missed message queue to use send_email.
...
This commit also changes the sender from "Zulip <NOREPLY_EMAIL_ADDRESS>" to
NOREPLY_EMAIL_ADDRESS when it is not set explicitly.
2017-05-05 14:38:25 -07:00
Rishi Gupta
72ee5e5159
email: Make context for invitation_reminder template jsonable.
...
We are about to change send_future_email in a way that will require all
callers to use jsonable context.
2017-05-05 14:38:25 -07:00
Rishi Gupta
92dd76822f
email: Move and rename password reset templates.
2017-05-03 23:26:14 -07:00
Rishi Gupta
c10d3114eb
email: Move and rename followup_day* templates.
2017-05-03 23:26:14 -07:00
Rishi Gupta
21a6377204
email: Move and rename find_team_email templates.
2017-05-03 23:26:14 -07:00
Rishi Gupta
ebfae36494
email: Move and rename digest_email templates.
2017-05-03 23:26:14 -07:00
Rishi Gupta
a1f0c1d6ac
email: Move and rename new_login_alert templates.
2017-05-03 23:26:14 -07:00
Rishi Gupta
26ac344b19
email: Move and rename invitation_reminder_email templates.
2017-05-03 23:26:14 -07:00
Rishi Gupta
21a2c7b9d9
email: Remove translation tags from email templates.
...
The only thing being translated in any email was the title of the Zulip
header image in the html file, probably because not doing so breaks a linter
rule.
he name "Zulip" doesn't make sense to translate anyway.
2017-05-03 23:25:33 -07:00
Rishi Gupta
975d5bd8c0
email: Move and rename notify_change_in_email templates.
2017-05-03 20:54:40 -07:00
Rishi Gupta
4e779c3e6f
email: Move and rename mituser_invite_email templates.
2017-05-03 20:54:40 -07:00
Rishi Gupta
713303deff
email: Move and rename invite_email templates.
2017-05-03 20:54:40 -07:00
Rishi Gupta
ed0c310aa3
email: Move and rename preregistrationuser_confirmation_email templates.
2017-05-03 20:54:40 -07:00
Rishi Gupta
aa21012783
email: Move and rename mituser_confirmation_email templates.
2017-05-03 20:54:40 -07:00
Rishi Gupta
235abe0b72
email: Move and rename emailchangestatus_confirmation_email templates.
2017-05-03 20:54:40 -07:00
Rishi Gupta
cafc60dd1d
email: Move and rename missed_message_email templates.
...
All email templates are being moved to templates/zerver/emails.
2017-05-03 20:54:39 -07:00
Benjamin Gilbert
a282cbb493
emails: Fix typo in spelling of "recognize".
2017-04-17 20:29:14 -07:00
Benjamin Gilbert
4775f55ca7
Fix spelling of "occurred" in various places.
2017-04-17 20:29:07 -07:00
hollywoodno
75d9630258
Add notifications on new logins to Zulip.
...
This adds helpful email notifications for users who just logged into a
Zulip server, as a security protection against accounts being hacked.
Text tweaked by tabbott.
Fixes #2182 .
2017-03-25 16:50:52 -07:00
Tim Abbott
3b59e6c3cc
subs: Rename /#subscriptions to /#streams.
...
Fixes #3653 .
2017-03-08 16:57:58 -08:00
Tim Abbott
85fbdd6b2d
emails: Remove old 'Keyboard Shortcuts' capitalization.
2017-02-10 15:18:41 -08:00
Rishi Gupta
c2ca4cb1bb
day2 email: Soften advice against using long topics.
...
In response to feedback that joining (and sending a first message to) a new
chat platform/org is already intimidating enough, and "Not Recommended" gets
the point across in a gentler way.
2017-01-12 15:04:51 -08:00
Rishi Gupta
0039689acb
find team flow: Update text in emails and templates.
2017-01-06 10:42:28 -08:00
Rishi Gupta
e481fef9e1
Move find_team_email subject to a templates/ file.
2017-01-06 10:42:28 -08:00
Rishi Gupta
7cb5d26999
Rename find_team_email_html.txt to find_team_email.html.
2017-01-06 10:42:28 -08:00
Rishi Gupta
f5d5b2525c
notifications.py: Change email template file endings from .text to .txt.
...
We use .txt for all other emails (i.e. ones that don't go through
notifications.py) in the codebase.
2017-01-06 10:42:28 -08:00
Rishi Gupta
8a07545afb
Rename digest_email_txt.html to digest_email.html.
...
The .html file ending is clearer and more in line with our other
email files.
2017-01-06 10:42:28 -08:00
Rishi Gupta
416c8f3052
digest_email_html.txt: Fix html linter errors.
2017-01-06 10:42:28 -08:00
Rishi Gupta
8d038eef2f
digest emails: Move the subject line to a templates/ file.
...
To match how we do the subject line for the emails in followup/ and
invitation/.
2017-01-06 10:42:28 -08:00
Umair Khan
f208813ea3
Add Find My Team feature.
2017-01-03 21:33:42 -08:00
Tim Abbott
39f0ffdedd
Move static/third/gemoji to static/generated/emoji.
...
Fixes #1153 .
2016-12-27 20:16:23 -08:00
Umair Khan
db5d86ab9e
i18n: Title attribute should be translatable.
2016-12-15 13:44:13 -08:00
Rishi Gupta
bba2465f89
Change links to /api to be relative or with {{ realm_uri }}.
2016-09-08 17:05:34 -07:00
Rishi Gupta
205fb996ec
templates: Use realm_uri and server_uri settings for server URL.
...
The policy here is essentially:
* Pages on the central server (documentation, etc.) are server_uri.
* Pages associated with a user's realm server (anything logged-in, plus
things like their login page) are realm_uri.
2016-08-13 16:37:45 -07:00
Rishi Gupta
dff43fcc5e
Change https:// to external_uri_scheme in templates.
...
Helps in case the development environment is not using https.
We get the value from zerver/context_processors.py (which is
ultimately reading it from settings)
2016-08-13 16:27:36 -07:00
Tim Abbott
7725c62892
Use VERBOSE_SUPPORT_OFFERS in day1 emails.
2016-07-19 15:28:41 -07:00
Tim Abbott
3ea4cbb5c3
settings: Extract settings.VERBOSE_SUPPORT_OFFERS.
2016-07-19 15:28:41 -07:00
Umair Khan
99b73c2728
digest emails: Fix typo in remaining_unread_pms_count.
...
This error likely caused this feature to never trigger.
2016-05-12 13:09:37 -07:00
Umair Khan
dfc58b0ed0
Upgrade digest email templates to Jinja2.
...
Fixes : #780
2016-05-13 01:01:28 +05:00
Umair Khan
5359e6b0d4
Convert Zulip to use Jinja2 templates.
...
This results in a substantial performance improvement for all of
Zulip's backend templates.
Changes in templates:
- Change `block.super` to `super()`.
- Remove `load` tag because Jinja2 doesn't support it.
- Use `minified_js()|safe` instead of `{% minified_js %}`.
- Use `compressed_css()|safe` instead of `{% compressed_css %}`.
- `forloop.first` -> `loop.first`.
- Use `{{ csrf_input }}` instead of `{% csrf_token %}`.
- Use `{# ... #}` instead of `{% comment %}`.
- Use `url()` instead of `{% url %}`.
- Use `_()` instead of `{% trans %}` because in Jinja `trans` is a block tag.
- Use `{% trans %}` instead of `{% blocktrans %}`.
- Use `{% raw %}` instead of `{% verbatim %}`.
Changes in tools:
- Check for `trans` block in `check-templates` instead of `blocktrans`
Changes in backend:
- Create custom `render_to_response` function which takes `request` objects
instead of `RequestContext` object. There are two reasons to do this:
1. `RequestContext` is not compatible with Jinja2
2. `RequestContext` in `render_to_response` is deprecated.
- Add Jinja2 related support files in zproject/jinja2 directory. It
includes a custom backend and a template renderer, compressors for js
and css and Jinja2 environment handler.
- Enable `slugify` and `pluralize` filters in Jinja2 environment.
Fixes #620 .
2016-05-09 09:55:18 -07:00
Nicholas Bergson-Shilcock
89a2765553
Turn off desktop notifications by default for new users.
...
New users will no longer get desktop and audible notifications for all streams
by default.
This also updates the `day1` follow-up email to let users know they can
customize how and when Zulip notifies them of new messages.
Lastly, this adds a `changelog.md` file, following the conventions from
keepachangelog.com, to track changes for new releases.
2015-10-15 12:25:32 -04:00
David Roe
3f7cb34b00
enterprise => voyager
...
(imported from commit 04be792bb480d5e5db1c91d296d1000cf1682571)
2015-08-21 10:33:35 -07:00
Waseem Daher
1016686397
Typo fix in day2 email.
...
(imported from commit bf36702c84ba545a64bf5c6531ce30fc23ef6ac7)
2014-01-30 07:57:52 -08:00
acrefoot
c30f2bbe3e
slightly stricter linting of html templates
...
(imported from commit 5bd0aa3c49d6ff95559a73bd5f134cc50ae98ce9)
2013-12-17 12:05:23 -05:00
Jessica McKellar
129d01e139
Remove stray typo in plaintext digest email template.
...
(imported from commit ccef927bd2e0fa5810a539c569785d4bdb640819)
2013-12-13 16:38:10 -05:00
Jessica McKellar
207cfc449d
Add unsubscribe links to digest e-mails.
...
(imported from commit 4e2a324decf4bc694752cc24b9085361338a08a5)
2013-12-02 18:58:03 -05:00
Waseem Daher
89844c6ced
Revise day1/day2 emails.
...
(imported from commit dc5e78cccb22b024be46b3066d44f09ea1b53345)
2013-12-02 11:15:13 -05:00
Jessica McKellar
8e72084fcb
Add one-click unsubscribe links to day 1 and day 2 emails.
...
(imported from commit 9396f96365430baf894c708f9eaea642fc648435)
2013-11-27 09:29:59 -05:00
acrefoot
fd4565dd67
modify day1 emails to point to new /hello location
...
(imported from commit e22936378eb1a8c541c4af274e6e6491cca8d313)
2013-11-22 13:50:24 -05:00
acrefoot
5d14105d1f
/hello is sacred, even on Zulip Enterprise
...
I broke Zulip Enterprise because I tried to make the /hello link in our day1 email
point to the local server (EXTERNAL_HOST).
(imported from commit 70262b34474ae292ecf9cfe59bebc3c7de904926)
2013-11-15 22:34:24 -05:00
acrefoot
bafb6f8dc3
fixup day1/day2 email templates
...
(imported from commit 30846fc298d04ac763025e82a60731d158840462)
2013-11-15 21:51:37 -05:00
acrefoot
daffe049ad
Don't use hardcoded noreply@zulip.com, zulip@zulip.com, or https://zulip.com
...
(imported from commit 1132553b63ae23ebcca746f0f65205b97bfee7dc)
2013-11-15 21:31:37 -05:00
Waseem Daher
50ca7c4731
day2 email: Try to make clear that this is the last one.
...
(imported from commit 953d491a7c5b6717178c85aed4a96e08a8e61e61)
2013-11-07 13:23:41 -05:00