fix: search notification
This commit is contained in:
		@@ -48,7 +48,7 @@ def send_notification_email(notification_pk):
 | 
				
			|||||||
    elif notification.notification_type == NotificationTypeChoices.AN_WAS_DEACTIVATED:
 | 
					    elif notification.notification_type == NotificationTypeChoices.AN_WAS_DEACTIVATED:
 | 
				
			||||||
        html_message = render_to_string('fellchensammlung/mail/notifications/an-deactivated.html', context)
 | 
					        html_message = render_to_string('fellchensammlung/mail/notifications/an-deactivated.html', context)
 | 
				
			||||||
    elif notification.notification_type == NotificationTypeChoices.AN_FOR_SEARCH_FOUND:
 | 
					    elif notification.notification_type == NotificationTypeChoices.AN_FOR_SEARCH_FOUND:
 | 
				
			||||||
        html_message = render_to_string('fellchensammlung/mail/notifications/report.html', context)
 | 
					        html_message = render_to_string('fellchensammlung/mail/notifications/an-for-search-found.html', context)
 | 
				
			||||||
    elif notification.notification_type == NotificationTypeChoices.NEW_COMMENT:
 | 
					    elif notification.notification_type == NotificationTypeChoices.NEW_COMMENT:
 | 
				
			||||||
        html_message = render_to_string('fellchensammlung/mail/notifications/new-comment.html', context)
 | 
					        html_message = render_to_string('fellchensammlung/mail/notifications/new-comment.html', context)
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,9 +8,8 @@
 | 
				
			|||||||
    <p>Moin,</p>
 | 
					    <p>Moin,</p>
 | 
				
			||||||
    <p>
 | 
					    <p>
 | 
				
			||||||
        es wurde eine neue Vermittlung gefunden die deinen Kriterien entspricht: {{ notification.adoption_notice }}
 | 
					        es wurde eine neue Vermittlung gefunden die deinen Kriterien entspricht: {{ notification.adoption_notice }}
 | 
				
			||||||
 | 
					 | 
				
			||||||
    </p>
 | 
					    </p>
 | 
				
			||||||
    <p>
 | 
					    <p>
 | 
				
			||||||
        <a href="{{ notification.adoption_notice.get_absolute_url }}" class="cta-button">{% translate 'Vermittlung anzeigen' %}</a>
 | 
					        <a href="{{ notification.adoption_notice.get_full_url }}" class="cta-button">{% translate 'Vermittlung anzeigen' %}</a>
 | 
				
			||||||
    </p>
 | 
					    </p>
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user