Add variables to Jinja
This commit is contained in:
parent
28dbafe1f7
commit
aa18b7ecd1
|
@ -4,7 +4,7 @@
|
||||||
<div class="card mx-auto" style="max-width: 600px">
|
<div class="card mx-auto" style="max-width: 600px">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="text-center mb-6">
|
<div class="text-center mb-6">
|
||||||
<a href="https://simplelogin.io">
|
<a href="{{LANDING_PAGE_URL}}">
|
||||||
<img src="/static/logo.svg" style="background-color: transparent; height: 24px">
|
<img src="/static/logo.svg" style="background-color: transparent; height: 24px">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
22
server.py
22
server.py
|
@ -41,6 +41,17 @@ from app.config import (
|
||||||
FIRST_ALIAS_DOMAIN,
|
FIRST_ALIAS_DOMAIN,
|
||||||
SESSION_COOKIE_NAME,
|
SESSION_COOKIE_NAME,
|
||||||
ADMIN_EMAIL,
|
ADMIN_EMAIL,
|
||||||
|
PLAUSIBLE_HOST,
|
||||||
|
PLAUSIBLE_DOMAIN,
|
||||||
|
GITHUB_CLIENT_ID,
|
||||||
|
GITHUB_CLIENT_SECRET,
|
||||||
|
GOOGLE_CLIENT_ID,
|
||||||
|
GOOGLE_CLIENT_SECRET,
|
||||||
|
FACEBOOK_CLIENT_ID,
|
||||||
|
FACEBOOK_CLIENT_SECRET,
|
||||||
|
LANDING_PAGE_URL,
|
||||||
|
STATUS_PAGE_URL,
|
||||||
|
SUPPORT_EMAIL,
|
||||||
)
|
)
|
||||||
from app.dashboard.base import dashboard_bp
|
from app.dashboard.base import dashboard_bp
|
||||||
from app.developer.base import developer_bp
|
from app.developer.base import developer_bp
|
||||||
|
@ -456,6 +467,17 @@ def jinja2_filter(app):
|
||||||
SENTRY_DSN=SENTRY_FRONT_END_DSN,
|
SENTRY_DSN=SENTRY_FRONT_END_DSN,
|
||||||
VERSION=SHA1,
|
VERSION=SHA1,
|
||||||
FIRST_ALIAS_DOMAIN=FIRST_ALIAS_DOMAIN,
|
FIRST_ALIAS_DOMAIN=FIRST_ALIAS_DOMAIN,
|
||||||
|
PLAUSIBLE_HOST=PLAUSIBLE_HOST,
|
||||||
|
PLAUSIBLE_DOMAIN=PLAUSIBLE_DOMAIN,
|
||||||
|
GITHUB_CLIENT_ID=GITHUB_CLIENT_ID,
|
||||||
|
GITHUB_CLIENT_SECRET=GITHUB_CLIENT_SECRET,
|
||||||
|
GOOGLE_CLIENT_ID=GOOGLE_CLIENT_ID,
|
||||||
|
GOOGLE_CLIENT_SECRET=GOOGLE_CLIENT_SECRET,
|
||||||
|
FACEBOOK_CLIENT_ID=FACEBOOK_CLIENT_ID,
|
||||||
|
FACEBOOK_CLIENT_SECRET=FACEBOOK_CLIENT_SECRET,
|
||||||
|
LANDING_PAGE_URL=LANDING_PAGE_URL,
|
||||||
|
STATUS_PAGE_URL=STATUS_PAGE_URL,
|
||||||
|
SUPPORT_EMAIL=SUPPORT_EMAIL,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -448,7 +448,7 @@
|
||||||
<table class="email-content" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="width: 100%; -premailer-width: 100%; -premailer-cellpadding: 0; -premailer-cellspacing: 0; margin: 0; padding: 0;">
|
<table class="email-content" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="width: 100%; -premailer-width: 100%; -premailer-cellpadding: 0; -premailer-cellspacing: 0; margin: 0; padding: 0;">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="email-masthead" style="word-break: break-word; font-family: Helvetica, Arial, sans-serif; font-size: 16px; text-align: center; padding: 25px 0;" align="center">
|
<td class="email-masthead" style="word-break: break-word; font-family: Helvetica, Arial, sans-serif; font-size: 16px; text-align: center; padding: 25px 0;" align="center">
|
||||||
<a href="{{URL}}" class="f-fallback email-masthead_name" style="color: #A8AAAF; font-size: 16px; font-weight: bold; text-decoration: none; text-shadow: 0 1px 0 white;">
|
<a href="{{LANDING_PAGE_URL}}" class="f-fallback email-masthead_name" style="color: #A8AAAF; font-size: 16px; font-weight: bold; text-decoration: none; text-shadow: 0 1px 0 white;">
|
||||||
<img src="{{URL}}/static/logo.png" style="width: 150px; margin: auto">
|
<img src="{{URL}}/static/logo.png" style="width: 150px; margin: auto">
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col mx-auto" style="max-width: 24rem">
|
<div class="col mx-auto" style="max-width: 24rem">
|
||||||
<div class="text-center mb-6">
|
<div class="text-center mb-6">
|
||||||
<a href="https://simplelogin.io">
|
<a href="{{LANDING_PAGE_URL}}">
|
||||||
<img src="/static/logo.svg" style="background-color: transparent; height: 20px">
|
<img src="/static/logo.svg" style="background-color: transparent; height: 20px">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue