-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4063 from davidfischer/update-rtd-gold-marketing
Update Gold Member marketing
- Loading branch information
Showing
12 changed files
with
120 additions
and
21 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
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
51 changes: 51 additions & 0 deletions
51
readthedocs/templates/profiles/private/advertising_profile.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,51 @@ | ||
{% extends "profiles/base_profile_edit.html" %} | ||
|
||
{% load i18n %} | ||
|
||
{% block title %}{% trans "Set advertising preferences" %}{% endblock %} | ||
|
||
{% block profile-admin-advertising %}active{% endblock %} | ||
|
||
{% block edit_content_header %} {% trans "Set advertising preferences" %} {% endblock %} | ||
|
||
{% block edit_content %} | ||
<p> | ||
{% blocktrans %} | ||
Read the Docs is an open source project. | ||
In order to maintain service, we rely on both the | ||
support of our users, and from sponsor support. | ||
{% endblocktrans %} | ||
</p> | ||
|
||
<p> | ||
{% blocktrans %} | ||
For more details on advertising on Read the Docs | ||
including the privacy protections we have in place for users | ||
and community advertising we run on behalf of the open source community, | ||
see <a href="https://docs.readthedocs.io/en/latest/ethical-advertising.html">our documentation</a>. | ||
{% endblocktrans %} | ||
</p> | ||
|
||
{% if request.user.gold.exists or request.user.goldonce.exists %} | ||
<p> | ||
{% blocktrans %} | ||
<strong>Note:</strong> | ||
Since you are a Gold Member or donor, you <strong>will not</strong> see advertising as long as you are logged-in. | ||
Thank you for supporting Read the Docs. | ||
{% endblocktrans%} | ||
</p> | ||
{% else %} | ||
<p> | ||
{% url "gold_detail" as gold_detail %} | ||
{% blocktrans %} | ||
You may remove ads completely by becoming a <a href="{{ gold_detail }}">Gold member to Read the Docs</a>. | ||
{% endblocktrans %} | ||
</p> | ||
{% endif %} | ||
|
||
<form method="POST" action="."> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<input type="submit" name="submit" value="{% trans "Update advertisement preference" %}" id="submit"/> | ||
</form> | ||
{% endblock %} |
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