-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hotfix/24.11.3' into develop
- Loading branch information
Showing
8 changed files
with
78 additions
and
20 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
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,19 @@ | ||
import markdown | ||
|
||
from website.settings import \ | ||
PRIVACY_POLICY_PATH, PRIVACY_POLICY_GITHUB_LINK, \ | ||
TERMS_POLICY_PATH, TERMS_POLICY_GITHUB_LINK | ||
|
||
def privacy_policy(): | ||
with open(PRIVACY_POLICY_PATH, 'r') as policy_file: | ||
return { | ||
'policy_content': markdown.markdown(policy_file.read(), extensions=['toc']), | ||
'POLICY_GITHUB_LINK': PRIVACY_POLICY_GITHUB_LINK | ||
} | ||
|
||
def terms_policy(): | ||
with open(TERMS_POLICY_PATH, 'r') as policy_file: | ||
return { | ||
'policy_content': markdown.markdown(policy_file.read(), extensions=['toc']), | ||
'POLICY_GITHUB_LINK': TERMS_POLICY_GITHUB_LINK | ||
} |
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,16 @@ | ||
<%inherit file="base.mako"/> | ||
|
||
<%def name="content()"> | ||
<div id="policy" class="container"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<br> | ||
${policy_content} | ||
</div> | ||
<div class="col-md-12"> | ||
<br> | ||
Version history for this policy is available <a href='${POLICY_GITHUB_LINK}'>here</a> | ||
</div> | ||
</div> | ||
</div><!-- end container policy --> | ||
</%def> |