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 %} | {% load account_tags %} | ||||||
| <p> | <p> | ||||||
|     <b>{% user_display message.user %}</b> has added a message on <b>{{ proposal.title }}</b>. |     <b>{% user_display message.user %}</b> has added a message on <b>{{ proposal.title }}</b>. | ||||||
|  | @ -6,6 +7,6 @@ | ||||||
|     {{ message.message|safe }} |     {{ message.message|safe }} | ||||||
| </blockquote> | </blockquote> | ||||||
| <p> | <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> |     Respond online at <a href="http://{{ current_site }}{{ detail_url }}#proposal-feedback">http://{{ current_site }}{{ detail_url }}#proposal-feedback</a> | ||||||
| </p> | </p> | ||||||
|  | @ -1,8 +1,9 @@ | ||||||
|  | {% load url from future %} | ||||||
| {% load account_tags %} | {% load account_tags %} | ||||||
| <p> | <p> | ||||||
|     <b>{% user_display user %}</b> has made changes to <b>{{ proposal.title }}</b> which you have previously reviewed or commented on. |     <b>{% user_display user %}</b> has made changes to <b>{{ proposal.title }}</b> which you have previously reviewed or commented on. | ||||||
| </p> | </p> | ||||||
| <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> |     View the latest version of the proposal online at <a href="http://{{ current_site }}{{ detail_url }}">http://{{ current_site }}{{ detail_url }}</a> | ||||||
| </p> | </p> | ||||||
|  |  | ||||||
|  | @ -1,6 +1,7 @@ | ||||||
|  | {% load url from future %} | ||||||
| <p>{{ proposal.speaker.name }} attached you as an additional speaker to a | <p>{{ proposal.speaker.name }} attached you as an additional speaker to a | ||||||
|     talk proposal for {{ current_site.name }} entitled "{{ proposal.title }}".</p> |     talk proposal for {{ current_site.name }} entitled "{{ proposal.title }}".</p> | ||||||
| 
 | 
 | ||||||
| <p>For more details, visit the {{ current_site.name }} speaker dashboard: | <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> | </p> | ||||||
|  |  | ||||||
|  | @ -1,9 +1,10 @@ | ||||||
|  | {% load url from future %} | ||||||
| <p>{{ proposal.speaker.name }} attached you as an additional speaker to a | <p>{{ proposal.speaker.name }} attached you as an additional speaker to a | ||||||
|     talk proposal for {{ current_site.name }} entitled "{{ proposal.title }}".</p> |     talk proposal for {{ current_site.name }} entitled "{{ proposal.title }}".</p> | ||||||
| 
 | 
 | ||||||
| <p>Go to</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> | <p>to confirm.</p> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,8 +1,9 @@ | ||||||
|  | {% load url from future %} | ||||||
| <p>{{ proposal.speaker.name }} attached you as an additional speaker to a | <p>{{ proposal.speaker.name }} attached you as an additional speaker to a | ||||||
|     talk proposal for {{ current_site.name }} entitled "{{ proposal.title }}".</p> |     talk proposal for {{ current_site.name }} entitled "{{ proposal.title }}".</p> | ||||||
| 
 | 
 | ||||||
| <p>Go to</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> | <p>to confirm and fill out your speaker profile.</p> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Rebecca Lovewell
						Rebecca Lovewell