This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert additional templates to Jinja (#8444)
This converts a few more of our inline HTML templates to Jinja. This is somewhat part of #7280 and should make it a bit easier to customize these in the future.
- Loading branch information
Showing
9 changed files
with
121 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Convert additional templates from inline HTML to Jinja2 templates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<html> | ||
<head> | ||
<title>Success!</title> | ||
<meta name='viewport' content='width=device-width, initial-scale=1, | ||
user-scalable=no, minimum-scale=1.0, maximum-scale=1.0'> | ||
<link rel="stylesheet" href="/_matrix/static/client/register/style.css"> | ||
<script> | ||
if (window.onAuthDone) { | ||
window.onAuthDone(); | ||
} else if (window.opener && window.opener.postMessage) { | ||
window.opener.postMessage("authDone", "*"); | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<div> | ||
<p>Thank you</p> | ||
<p>You may now close this window and return to the application</p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<html> | ||
<head> | ||
<title>Authentication</title> | ||
<meta name='viewport' content='width=device-width, initial-scale=1, | ||
user-scalable=no, minimum-scale=1.0, maximum-scale=1.0'> | ||
<script src="https://www.recaptcha.net/recaptcha/api.js" | ||
async defer></script> | ||
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script> | ||
<link rel="stylesheet" href="/_matrix/static/client/register/style.css"> | ||
<script> | ||
function captchaDone() { | ||
$('#registrationForm').submit(); | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<form id="registrationForm" method="post" action="{{ myurl }}"> | ||
<div> | ||
<p> | ||
Hello! We need to prevent computer programs and other automated | ||
things from creating accounts on this server. | ||
</p> | ||
<p> | ||
Please verify that you're not a robot. | ||
</p> | ||
<input type="hidden" name="session" value="{{ session }}" /> | ||
<div class="g-recaptcha" | ||
data-sitekey="{{ sitekey }}" | ||
data-callback="captchaDone"> | ||
</div> | ||
<noscript> | ||
<input type="submit" value="All Done" /> | ||
</noscript> | ||
</div> | ||
</div> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<html> | ||
<head> | ||
<title>Authentication</title> | ||
<meta name='viewport' content='width=device-width, initial-scale=1, | ||
user-scalable=no, minimum-scale=1.0, maximum-scale=1.0'> | ||
<link rel="stylesheet" href="/_matrix/static/client/register/style.css"> | ||
</head> | ||
<body> | ||
<form id="registrationForm" method="post" action="{{ myurl }}"> | ||
<div> | ||
<p> | ||
Please click the button below if you agree to the | ||
<a href="{{ terms_url }}">privacy policy of this homeserver.</a> | ||
</p> | ||
<input type="hidden" name="session" value="{{ session }}" /> | ||
<input type="submit" value="Agree" /> | ||
</div> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters