updated links
This commit is contained in:
parent
1381f3fdbd
commit
7d256c9f3f
5 changed files with 6 additions and 6 deletions
|
|
@ -19,12 +19,12 @@
|
||||||
<button>⚓︎ Zum Artikel</button>
|
<button>⚓︎ Zum Artikel</button>
|
||||||
</a>
|
</a>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="center"><a id="hide" href="https://blauwasser-mausis.de/blog/bootsuche-england">
|
<div class="center"><a id="hide" href="https://blauwasser-mausis.de/user">
|
||||||
<span>Abbestellen</span>
|
<span>Abbestellen</span>
|
||||||
</a></p>
|
</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a id="admin" href="https://backend.blauwasser-mausis.de/?secret={{data.secret}}">Approve</a>
|
<a id="admin" href="https://backend.blauwasser-mausis.de/admin/newsletter/{{data.secret}}">Approve</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<button>⚓︎ Zum Artikel</button>
|
<button>⚓︎ Zum Artikel</button>
|
||||||
</a>
|
</a>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="center"><a id="hide" href="https://blauwasser-mausis.de/blog/bootsuche-england">
|
<div class="center"><a id="hide" href="https://blauwasser-mausis.de/user">
|
||||||
<span>Abbestellen</span>
|
<span>Abbestellen</span>
|
||||||
</a></p>
|
</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<p>Dein persönlicher Code, um alle Funktionen nutzen zu können: {{data.user_code}}</p>
|
<p>Dein persönlicher Code, um alle Funktionen nutzen zu können: {{data.user_code}}</p>
|
||||||
|
|
||||||
<a href="https://blauwasser-mausis.de/">
|
<a href="https://blauwasser-mausis.de/user">
|
||||||
<span>Daten löschen</span>
|
<span>Daten löschen</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ def approve_newsletter(secret: str = Form(), session: Session = Depends(get_sess
|
||||||
mails: list[BatchEmailRequest] = []
|
mails: list[BatchEmailRequest] = []
|
||||||
for user in subscribed_users:
|
for user in subscribed_users:
|
||||||
html = create_html_from_template("newsletter", {"user": user, "article": article_data })
|
html = create_html_from_template("newsletter", {"user": user, "article": article_data })
|
||||||
mail = BatchEmailRequest(to=[Address(email=user.email,name=user.name)],html=html)
|
mail = BatchEmailRequest(to=[Address(email=user.email,name=user.name)], html=html)
|
||||||
mails.append(mail)
|
mails.append(mail)
|
||||||
send_batch_mail(mails)
|
send_batch_mail(mails)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,4 +54,4 @@ export const navigateBackAndReload = () => {
|
||||||
export const navigatePathAndReload = (path: string) => {
|
export const navigatePathAndReload = (path: string) => {
|
||||||
navigate(path, { history: 'replace' });
|
navigate(path, { history: 'replace' });
|
||||||
setTimeout(() => window.location.reload(), 50);
|
setTimeout(() => window.location.reload(), 50);
|
||||||
};
|
}
|
||||||
Loading…
Add table
Reference in a new issue