Use {% load url from future %} in emails templates
Using https://github.com/futurecolors/django-future-url
This commit is contained in:
parent
55d37c13bd
commit
935ec48032
5 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
|||
{% load url from future %}
|
||||
{% load account_tags %}
|
||||
<p>
|
||||
<b>{% user_display message.user %}</b> has added a message on <b>{{ proposal.title }}</b>.
|
||||
|
@ -6,6 +7,6 @@
|
|||
{{ message.message|safe }}
|
||||
</blockquote>
|
||||
<p>
|
||||
{% if reviewer %}{% url review_detail proposal.pk as detail_url %}{% else %}{% url proposal_detail proposal.pk as detail_url %}{% endif %}
|
||||
{% if reviewer %}{% url 'review_detail' proposal.pk as detail_url %}{% else %}{% url 'proposal_detail' proposal.pk as detail_url %}{% endif %}
|
||||
Respond online at <a href="http://{{ current_site }}{{ detail_url }}#proposal-feedback">http://{{ current_site }}{{ detail_url }}#proposal-feedback</a>
|
||||
</p>
|
|
@ -1,8 +1,9 @@
|
|||
{% load url from future %}
|
||||
{% load account_tags %}
|
||||
<p>
|
||||
<b>{% user_display user %}</b> has made changes to <b>{{ proposal.title }}</b> which you have previously reviewed or commented on.
|
||||
</p>
|
||||
<p>
|
||||
{% url review_detail proposal.pk as detail_url %}
|
||||
{% url 'review_detail' proposal.pk as detail_url %}
|
||||
View the latest version of the proposal online at <a href="http://{{ current_site }}{{ detail_url }}">http://{{ current_site }}{{ detail_url }}</a>
|
||||
</p>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{% load url from future %}
|
||||
<p>{{ proposal.speaker.name }} attached you as an additional speaker to a
|
||||
talk proposal for {{ current_site.name }} entitled "{{ proposal.title }}".</p>
|
||||
|
||||
<p>For more details, visit the {{ current_site.name }} speaker dashboard:
|
||||
<a href="http://{{ current_site }}{% url dashboard %}">http://{{ current_site }}{% url dashboard %}</a>
|
||||
<a href="http://{{ current_site }}{% url 'dashboard' %}">http://{{ current_site }}{% url 'dashboard' %}</a>
|
||||
</p>
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
{% load url from future %}
|
||||
<p>{{ proposal.speaker.name }} attached you as an additional speaker to a
|
||||
talk proposal for {{ current_site.name }} entitled "{{ proposal.title }}".</p>
|
||||
|
||||
<p>Go to</p>
|
||||
|
||||
<p><a href="http://{{ current_site }}{% url speaker_create_token token %}">http://{{ current_site }}{% url speaker_create_token token %}</a></p>
|
||||
<p><a href="http://{{ current_site }}{% url 'speaker_create_token' token %}">http://{{ current_site }}{% url 'speaker_create_token' token %}</a></p>
|
||||
|
||||
<p>to confirm.</p>
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
{% load url from future %}
|
||||
<p>{{ proposal.speaker.name }} attached you as an additional speaker to a
|
||||
talk proposal for {{ current_site.name }} entitled "{{ proposal.title }}".</p>
|
||||
|
||||
<p>Go to</p>
|
||||
|
||||
<p><a href="http://{{ current_site }}{% url speaker_create_token token %}">http://{{ current_site }}{% url speaker_create_token token %}</a></p>
|
||||
<p><a href="http://{{ current_site }}{% url 'speaker_create_token' token %}">http://{{ current_site }}{% url 'speaker_create_token' token %}</a></p>
|
||||
|
||||
<p>to confirm and fill out your speaker profile.</p>
|
||||
|
|
Loading…
Reference in a new issue