zulip/templates/confirmation
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
..
confirm.html enterprise => voyager 2015-08-21 10:33:35 -07:00
confirm_mituser.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
confirm_preregistrationuser.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
invite_email_body.txt enterprise => voyager 2015-08-21 10:33:35 -07:00
invite_email_subject.txt account creation and password resets: Switch from Humbug to Zulip in user-visible text. 2013-07-15 17:49:00 -04:00
mituser_confirmation_email_body.txt Use zulip.com for various links to the app and static content. 2013-07-25 17:27:45 -04:00
mituser_confirmation_email_subject.txt account creation and password resets: Switch from Humbug to Zulip in user-visible text. 2013-07-15 17:49:00 -04:00
mituser_invite_email_body.txt enterprise => voyager 2015-08-21 10:33:35 -07:00
mituser_invite_email_subject.txt Custom invite text for MIT invitations. 2013-09-20 12:06:26 -04:00
preregistrationuser_confirmation_email_body.txt enterprise => voyager 2015-08-21 10:33:35 -07:00
preregistrationuser_confirmation_email_subject.txt account creation and password resets: Switch from Humbug to Zulip in user-visible text. 2013-07-15 17:49:00 -04:00